使用Visual C ++ 2010进行编译时如何定位Windows XP sp3? [英] How to target Windows XP sp3 when compiling with Visual C++ 2010?

查看:88
本文介绍了使用Visual C ++ 2010进行编译时如何定位Windows XP sp3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Windows 7计算机上使用Visual Studio 2010 Pro编译C ++程序,以32位Windows XP sp3为目标.

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.

我已经试用过编译器和链接器设置,但是无法生成可以在Windows XP计算机上运行的可执行文件.我总是收到错误消息在kernel32.dll中找不到函数GetTickCount64的入口点",并且程序无法运行.我知道Windows XP不支持GetTickCount64(),而且我也不会在我的代码中使用它.

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.

我没有安装其他版本的Visual Studio,并且已经在Windows XP计算机上安装了Visual C ++ 2010 Redistributable Package.

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?

多谢.

推荐答案

VC2010默认以Windows 7为目标. 要将目标更改为XP,请检查使用Windows标头

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

这篇关于使用Visual C ++ 2010进行编译时如何定位Windows XP sp3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆