visual-c++-runtime

WIX merge c++ runtime

不打扰是莪最后的温柔 提交于 2019-12-28 06:52:27
问题 I have merged msm for vs 2015 crt: <DirectoryRef Id="TARGETDIR" > <Merge Id = "Microsoft_VC140_CRT_x64.msm" FileCompression = "yes" Language = "1033" SourceFile = "..\\..\\..\\..\\..\\..\\..\\external\\tools\\systemsetups\\merge_modules\\Microsoft_VC140_CRT_x64.msm" DiskId = "1" />" </DirectoryRef> <Feature> <Feature Id="Complete" Title="Complete" Absent="allow" Level="1"> ... <MergeRef Id="Microsoft_VC140_CRT_x64.msm"/> ... </Feature> but I still receiving: --------------------------- MyApp

Use Visual Studio 2012 and compile with older platform toolset?

邮差的信 提交于 2019-12-28 02:44:07
问题 The problem I'm using Visual Studio 2012 to develop C++ DLLs. On some machines these DLLs can not be loaded, because the platform toolset, which is set to "v110" is missing. I have tried to install older c++ runtimes. They didn't install because "a newer version is already installed". I also installed the current Windows SDK, but there are still no other items to choose from than v110. Question How can I compile my C++ DLL with an older version of the C++ runtime so it will run on non

Conflicting run time libraries in Visual C++ DLL project

故事扮演 提交于 2019-12-25 05:06:23
问题 I Just tried to build a x64 C++ DLL using Visual C++ 2012. It's a simple DLL linking one other static third-party .lib file. I am getting the following warning message: warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library It seems that other library uses /MT (multithreaded static runtime) linker option while my DLL (and all the other projects importing my DLL) uses /MD (multithreaded DLL runtime). I can not harmonize this since the third-party lib

Debug Assertion Failed Expression: _pFirstBlock == pHead using OpenCV and C++ trying to call SurfFeatureDetector

梦想的初衷 提交于 2019-12-09 05:46:16
问题 I have this function in C++ using OpenCV: vector<KeyPoint> test(Mat img) { int minHessian = 400; SurfFeatureDetector detector( minHessian ); vector<KeyPoint> vKeypoints; detector.detect( img, vKeypoints ); return vKeypoints; } When I call this function in my main-method everything works fine. int main( int, char** argv ) { // path to a image-file char* input = "image.jpg"; // read image into Mat img Mat img = imread( input, CV_LOAD_IMAGE_GRAYSCALE ); // call function test test(img); waitKey(0

WIX merge c++ runtime

百般思念 提交于 2019-11-28 02:10:44
I have merged msm for vs 2015 crt: <DirectoryRef Id="TARGETDIR" > <Merge Id = "Microsoft_VC140_CRT_x64.msm" FileCompression = "yes" Language = "1033" SourceFile = "..\\..\\..\\..\\..\\..\\..\\external\\tools\\systemsetups\\merge_modules\\Microsoft_VC140_CRT_x64.msm" DiskId = "1" />" </DirectoryRef> <Feature> <Feature Id="Complete" Title="Complete" Absent="allow" Level="1"> ... <MergeRef Id="Microsoft_VC140_CRT_x64.msm"/> ... </Feature> but I still receiving: --------------------------- MyApp.exe - System Error --------------------------- The program can't start because mfc140u.dll is missing

Use Visual Studio 2012 and compile with older platform toolset?

試著忘記壹切 提交于 2019-11-27 07:35:20
The problem I'm using Visual Studio 2012 to develop C++ DLLs. On some machines these DLLs can not be loaded, because the platform toolset, which is set to "v110" is missing. I have tried to install older c++ runtimes. They didn't install because "a newer version is already installed". I also installed the current Windows SDK, but there are still no other items to choose from than v110. Question How can I compile my C++ DLL with an older version of the C++ runtime so it will run on non-developer machines? According to this page on MSDN , you need to have the corresponding version of Visual