I would like to know whether we can build the projects/binaries using visual studio 2015 which can run on Windows xp ? If its supported then how we can build ?
相关问题
- how to call a C++ dll from C# windows application
- efficiently calling unmanaged method taking unmana
- Why is my COM factory never released during the pr
- How to debug static dependency loading problems?
- Is It possible to build asp.net core project using
相关文章
- Build errors of missing packages in Visual Studio
- How do I get to see DbgPrint output from my kernel
- Visual Studio 2015 JSX/ES2015 syntax highlighting
- Edit & Continue doesn't work
- C++: Callback typedefs with __stdcall in MSVC
- Is it possible to check whether you are building f
- Which VC++ redistributable package to choose (x86
- How can one batch file get the exit code of anothe
As mentioned by dxiv Windows XP can be targeted from visual studio using the correct Platform toolset (Visual Studio 2015 - Windows XP (v140_xp)).
This is not in all cases sufficient. Because the vs compiler was extended by propper thread local storage (TLS) handling there is an additional change needed. The new TLS is not properly supported by Windows XP and therefore static objects in dll's will not be initialized. If you want to avoid this problem us the additional compiler flag
/Zc:threadSafeInit-
to disable this problematic feature.If you would like to use boost, you have to build it yourself. To make it compatible with Windows XP the following options have to be added :
1) run these commands before the build with b2 (bjam)
2) use these additional options for b2
Note:
cxxflags="/Zc:threadSafeInit- "
is intentional du to a bug in b2 which would remove the trailing "-"Configuring C++ 11 Programs for Windows XP