Questions tagged [microsoft-runtime-library]

33 questions
49
votes
2 answers

Microsoft Visual Studio ~ C/C++ Runtime Library ~ Static/dynamic linking

I am a Microsoft Visual Studio user. My question is about the "C/C++ Runtime Library". I created an "Empty Project" with a ".cpp" source file "main.cpp" containing the following code: #include int main(void) { std::cout << "Hello…
Léa Massiot
  • 1,928
  • 6
  • 25
  • 43
7
votes
2 answers

From a technical POV, what is it that MinGW does that makes gcc possible on windows?

Several questions: Is it correct to understand that MinGW is essentially taking the gcc source and compiling it into an executable for windows, i.e gcc.exe? MinGW wiki says "MinGW on the other hand, provides functions supplied by the Win32 API.".…
igbgotiz
  • 892
  • 1
  • 8
  • 28
3
votes
0 answers

What Runtime Library does Clang use when compiled under Visual Studios 2015

This sounds a bit stupid. But I can't find any information about this in the documentation. This is more of a pre-emptive question to get it out of the way But when you compile Clang/LLVM 4.0 in Win64, what runtime library does Clang immediately…
3
votes
1 answer

Can you make visual c++ 2013 build with the old runtime libraries?

Since the new runtime libraries aren't on every computer, they need to have the redistributables downloaded, and I know I can do this with some kind of installer, but that is very troublesome. So instead is there just a way for me to build my…
3
votes
1 answer

How to change the spec file of MinGW to link against the MSVCR100.dll and MSVCP100.dll?

I'm using Windows 7 and the latest MinGW version (gcc v4.7.2). My problem is, to trigger MinGW to use the "MSVCR100" and the "MSVCP100" runtime dll's for a simple test application. My default customized spec file looks like as follows:…
2
votes
1 answer

How to detect if MS Runtime or Office is installed on computer on application stratup?

I have a WinForm program developed in VB.Net with Visual Studio 2005. The program needs Microsoft Office Runtime installed atleast on the computer to allow the application to run without any errors. Is their a way to check the computer to see if…
2
votes
1 answer

CEF - Build tests with MDd

I'm currently trying to implement a software that is based on the Chromium Embedded Framework (CEF). The platform I'm aiming at is windows and I'm using the latest version from the CEF Automated builds (as of the date of this post). Due to…
2
votes
0 answers

Get runtime library version programmatically

Is it possible to get the version of the runtime library of a c++ win32 application at runtime? I'm talking about MT vs MTd vs MD vs MDd.
chtenb
  • 14,924
  • 14
  • 78
  • 116
2
votes
4 answers

Linker Error: Precombiled Library VC++ 6.0 with VC++ 8.0 Program

I am trying to recompile some code I have for a new system. It involves a precompiled static library that I do not have the source code for (just the header), and this library was built with VC++ 6.0 or older with the older runtime libraries. On my…
jjl3
  • 47
  • 1
  • 3
1
vote
2 answers

How to activate CMakeSettings.json variables in VS2019

I am trying CMake in VS2019 for the first time and am confused about how it works. This is in Windows 10 using the msvc_x64_x64 toolset. I have a CMake project that creates a static library, which I would like to use dynamic linking. The default…
1
vote
1 answer

Automatic inclusion of runtime library/framework into the installation package VS2008

Project1: A C++ EXE project with code generation option "runtime library" set to "Multithreaded Debug Dll". Project2: A C# EXE project developed with .Net Version, say, 3.5 Suppose I want to write an installer project for these projects. I…
Armen Tsirunyan
  • 130,161
  • 59
  • 324
  • 434
1
vote
0 answers

How can you get a C# app to talk to a C++ DLL when the DLL has cross platform dependencies?

I am trying to build a C# widget to run alongside a C++ service architecture. I am leveraging an existing C++ interface service that publishes/subscribes data and I am hooking it up to the C# visualization's callbacks. So I've got a solution with…
Myca A.
  • 81
  • 7
1
vote
1 answer

How to reuse static library code which is already linked into a DLL with another C++ application in visual studio 2010?

I'm working on a C++ solution in Visual Studio 2010. I've a DLL file which is using some standard C++ library functions (such as string or file functions). For some portability reasons I have to compile this DLL with /MT option, so all required…
1
vote
1 answer

Callback function does't work Multi-threaded Debug (/ MTd)

I need to create a dll that works with callback function. When I set Runtime Libary = Multi-threaded Debug (/ MTd) in project properties, it generates this error message: But when I set Runtime Libary = Multi-threaded Debug DLL (/ MDd), the…
0
votes
0 answers

SCons building project in debug mode uses /MD runtime instead of /MDd runtime

I have downloaded Godot's cpp bindings and I'm building the library from source using SCons (it comes with an SConstruct file). However, when I use this library from a project in Visual Studio, I get a linker error due to the debug library built…
1
2 3