2010-12-01 68 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 
相關問題