How to target Windows XP sp3 when compiling with Visual C++ 2010?

笑着哭i 提交于 2019-12-10 12:24:36

问题


I am trying to compile a C++ program using Visual Studio 2010 Pro on a Windows 7 computer to target Windows XP sp3 32 bits.

I've played around with the compiler and linker settings, but I'm unable to produce an executable that can run on my Windows XP computer. I always get the error "Could not find entry point for function GetTickCount64 in kernel32.dll" and the program doesn't run. I know Windows XP does not support GetTickCount64() and I'm not using it in my code anyways.

I don't have other versions of Visual Studio installed, and I already installed Visual C++ 2010 Redistributable Package on the windows XP machine.

Any idea on how to accomplish this?

Thanks before hand.


回答1:


VC2010 targets Windows 7 by default. To change target to XP, check Using the Windows Headers



来源:https://stackoverflow.com/questions/16381505/how-to-target-windows-xp-sp3-when-compiling-with-visual-c-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!