Questions tagged [universal-crt]
10 questions
9
votes
2 answers
How to circumvent Windows Universal CRT headers dependency on vcruntime.h
In trying to evaluate Clang on Windows, utilizing the Windows Universal C Run-Time (...\Windows Kits\10\Include\10.0.15063.0\ucrt) I was immediately facing unexpected wall, in the form of an undisclosed and unexpected dependency on Microsoft's…

Ron Pinkas
- 357
- 2
- 10
8
votes
2 answers
VS2015 fixing path issue in VC_IncludePath
I have a Problem when attempting to compile a simple hello world c++ program.
#include
int main()
{
std::cout << "hello world" << std::endl;
return 0;
}
Among the errors is:
cannot open source file "errno.h"
A quick search using…

Johannes
- 6,490
- 10
- 59
- 108
6
votes
1 answer
ABI-Compatibility of visual studio c-libraries
It is my understanding that (with the notable exception of the switch from VS2015 to VS2017) Microsoft makes ABI breaking changes between each version of the Visual C++ toolchain. So if I want to distribute a binary version of a library, I have to…

MikeMB
- 20,029
- 9
- 57
- 102
4
votes
1 answer
Crash in _snprintf_s() in "ucrtbase.dll" with STATUS_ILLEGAL_INSTRUCTION
It was brought to my attention that my binary will crash on the CPU without SSE support, with exception code 0xC000001D (STATUS_ILLEGAL_INSTRUCTION), despite I'm compiling with option /arch:IA32. And I have been able to track down the exact place…

MuldeR
- 577
- 1
- 4
- 17
3
votes
1 answer
How do I build against the UCRT with mingw-w64?
I would like to be able to use mingw-w64 to build binaries that link to the Universal CRT available with Visual Studio 2015+ instead of MSVCRT.lib. The release notes for mingw-w64 v6.0.0 include the following: "Massive additions to support UCRT…
user9723177
3
votes
1 answer
Why does ucrtbase export _CxxThrowException?
Why do ucrtbase.dll and vcruntime140.dll overlap in some of the functions they export according to Dependency Walker?
Disclaimer: This is currently purely of academic interest to me.
I'm currently trying to understand the layout of the Microsoft…

Martin Ba
- 37,187
- 33
- 183
- 337
2
votes
1 answer
How to link Windows universal CRT to obj file compiled with nasm
Environment: Windows 10. I happen to be using a MinGW version of ld for linking, but I'm happy to use the visual studio link.exe if it makes things simpler.
I have the following basic program in nasm:
global _main
extern _printf
…

Twicetimes
- 678
- 1
- 7
- 15
1
vote
0 answers
Deploying Universal CRT DLLs
If I were to deploy an unmanaged application that was built using Visual Studio 2015 and that was linked dynamically to CRT, is it sufficient to just install the appropriate vcredist_.exe redistributables on the target PC? Reason I am asking is,…

ForeverLearning
- 6,352
- 3
- 27
- 33
0
votes
0 answers
What is the location of the Windows 10 Universal C Runtime?
I created a C++ library, which runs fine on my machine.
When I deploy it to another PC, the library fails to load.
I checked with dependency walker and discovered some missing dependencies of the form API-MS-WIN-CRT-*-L1-1-0.DLL.
I found out that…

TostMaster
- 164
- 2
- 9
0
votes
1 answer
Is it possible to create a Wix installer project that will install a VS2015 project on a vanilla Windows 7 machine?
I've recently upgraded the project I work on to use the new Visual Studio 2015 compiler (as well as SDK 10.0 and Windows Driver Kit 10.0). I've noticed that as well as the usual change to the VC Redist merge modules this has now introduced some…

Benj
- 31,668
- 17
- 78
- 127