2010-12-01 87 views
2

我最近安装了Visual Studio 2010,并将我的项目从Visual Studio 2005迁移到2010年。迁移后,我无法在我的项目中编译Pro * C文件。我使用Oracle 10g预编译器。我收到此错误消息:如何编译Visual Studio 2010中的Pro * C文件

Syntax error at line 48, column 9, file C:\VisualStudio10\VC\include\vadefs.h: typedef _W64 unsigned int uintptr_t; 
PCC-S-02201, Encoutered the symbol "__w64" when expecting one of the following: 
auto, char, const, double, enum .......... a typedef name 

我的项目在VS 2005中正确编译。 VS 2010有什么事?

回答

1

我不知道详细PRO * C,但你可能应该从MS数独阅读此页:

http://msdn.microsoft.com/en-us/library/s04b5w00.aspx

由于符号__w64仅适用于某些32-> 64的便携性警告,将这个符号定义为空可能就足够了。将#define __w64放置在中心位置或将__w64的空符号定义添加到项目的编译器选项中。

0

我将此代码添加到代码中,似乎可以解决它。

#ifdef _WIN32 
    /* This allows compilation on vs 2010 */ 
    #define _W64 
#endif 
相关问题