Questions tagged [microsoft-runtime-library]

33 questions
0
votes
1 answer

CheckForDuplicateEntries': is not a member of 'Microsoft::WRL::Details (C2039)

I am programming a DirectX Game and on Debug mode it's working normally, but on release mode I get 46 Errors of this: Severity Code Description Project File Line Suppression State Error C2039 'CheckForDuplicateEntries': is not a member…
0
votes
1 answer

How to make Visual Studio (2019/2022) link to the normal runtime libraries during a debug build?

The reason I want to do this is because the debug libraries are littered with extra "assertion" statements that take ages to start with during remote debugging. I hope it's only to replace Multi-threaded Debug DLL (/MDd) with Multi-threaded DLL…
IODEV
  • 1,706
  • 2
  • 17
  • 20
0
votes
0 answers

I can't build project with quickfix

I tri build project with quickfix.lib In VC++ Directories i set path "lib" In C/C++ -> General -> Additional Include Dir I set path to my inlude files "include" In Linker -> Input -> Additional Dependencies I add quickfix.lib This project build…
SMax23
  • 11
  • 2
0
votes
1 answer

Project compile with MDd even when setting to MTd

I'm trying to compile an exe that depends on some other static projects. Some of the projects depends on OpenCV libraries that compiled with MTd runtime library option. What I did is to set the runtime library of all my projects to MTd (in the…
0
votes
0 answers

Using multiple Runtime Libraries on Visual Studio 2015

I am currently making a webserver that fetches data from a database and passes it to the API. I managed to make both of those things work separately but when I need to make them work together (my webserver queries the database, parses it in json,…
0
votes
0 answers

Choosing the MD Run-Time Library version for cross compiling

I need to cross compile using Visual 2005 in Windows 10 to deploy in a Windows NT. I compiled (in WIN10) using the MT Run-Time library and I could execute some applications in windows NT correctly, but now I need to use the MD, instead of the MT.…
0
votes
1 answer

How to explicitly call CRT startup functions

Is there any way I can explicitly in my code call the functions that are normally called in mainCRTStartup functions? I'm specifically interested initterm and initterm_e functions. Even thought my program is linked with crt (it has to be, right?) I…
Marcin K.
  • 683
  • 1
  • 9
  • 20
0
votes
1 answer

Is _write in io.h a blocking call?

I've inherited some code which, to initialise some hardware, writes a few bytes and then waits for a return. To do this it calls the _write function from io.h. From my testing, it looks like it's locking up at that point. So my questions are as…
Jon Cage
  • 36,366
  • 38
  • 137
  • 215
0
votes
1 answer

LNK4098 - 'MSVCRT' conflict using GLFW

I'm working on a project using OpenGL. However, I have the linker warning "Resolving LNK4098: defaultlib 'MSVCRT' conflicts with ..." when I build my project. I've been reading a lot of stuff about this warning, and found out using Dependency…
Markinson
  • 2,077
  • 4
  • 28
  • 56
0
votes
1 answer

How to build opencv and boost both in visual studio 2013? /MTd? /MDd?

I use boost library and openCV with Visual Studio 2013 in windows 7. When I build them, there are many errors like that. opencv_core2410d.lib(alloc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match…
Naing
  • 51
  • 1
  • 1
  • 2
0
votes
1 answer

delete pointer causes memory leak?

I am using Run Time Library, CRT, to detect memory leak. Here is what I found in the destructor: _CrtMemCheckpoint(&crtMemStateFinish); nDifference = _CrtMemDifference(&crtMemStateDifference, &crtMemStateStart,…
Nick X Tsui
  • 2,737
  • 6
  • 39
  • 73
0
votes
1 answer

What's a good way to resolve Runtime library conflicts?

I have a rather large c/c++ CGI project which references several external libraries (OpenSSL, FastCGI, Boost, etc). I verified that every single library is built with /MT like our main executable project. However, when including certain headers (for…
arao6
  • 3,316
  • 5
  • 30
  • 51
0
votes
1 answer

Corrupt C runtime library?

I'm using Visual Studio Professional 2012 (with Update 2) and since I have a project that needs to be built with the VC++ 2010 toolset I also installed Visual C++ 2010 Express (with SP1). I use the newer 2012 IDE also for the older projects. So for…
Robert Hegner
  • 9,014
  • 7
  • 62
  • 98
0
votes
1 answer

boost::lexical_cast without runtime libraries

I'm in a situation where I would like to use boost::lexical_cast, but cannot make use of C/C++ runtime libraries, and thus cannot use lexical_cast. I don't know Boost extremely well, but I have seen the use of blocks such as: #ifdef…
Austin
  • 140
  • 1
  • 10
0
votes
0 answers

Using z/OS XL C/C++ to improve performance with better memory management

I wish to improve memory management in a program with many uses of huge matrices. I would like to use the runtime resolved number of bytes in one cache line. There is a function sysconf() in z/OS XL C/C++ to do so. I this runtime library a third…
kiriloff
  • 25,609
  • 37
  • 148
  • 229