Senqiang

I can compile a project successfully on x86 platfomr. When I switch to x64 config, I got the following error when compiling:

Error 1 fatal error C1083: Cannot open source file: 'NO_CONFIG_READER': No such file or directory File: c1xx

This error sounds wired since ¡°NO_CONFIG_READER¡± is not a file. It is a preprocessor definition defined in the project property. Any hints

Thanks,



Re: Visual C++ Language Cannot handle preprocessor definition on 64bit platform

Bruno van Dooren

Have you looked where that macro is used

It could be that there is an error in your command line, causing the compiler to treat the macro name as the name of a file. could you post the compiler command line





Re: Visual C++ Language Cannot handle preprocessor definition on 64bit platform

Senqiang

<P>The command line is generated by visual studio:</P>
<P align=left>/O2 /GL /I "..\..\TextProcess\PreProcessSimple" /I "..\..\..\..\..\Common\CoreSearch\shared\trie\src\trielib" /I "..\..\..\..\Common" /I "..\..\..\..\..\Common\CoreSearch\parser\inc" /I "..\..\\" /I "..\..\..\..\..\Utilities\LanguageProcessing\WordBreaker" /I "..\..\..\..\..\Utilities\MultithreadUtil" /I "..\..\..\..\..\Common" /I "..\..\..\..\..\Common\CoreSearch\shared\common\src" /I "..\..\..\..\..\Common\AutopilotSDK\inc" /I "..\..\..\..\..\Common\AutopilotSDK" /AI "D:\SRC\VirtualEarth-Test\Release\LocalSearch_Main\LocalSearch\Target\x64\release" /AI "" /D "WIN64" /D "<STRONG>NO_CONFIG_READER</STRONG>" /D "NDEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHa /MD /Yc"stdafx.h" /Fp"x64\Release\CreateDirectMap.pch" /Fo"x64\Release\\" /Fd"x64\Release\vc80.pdb" /W4 /nologo /c /Zi /clr /Gz /TP /errorReportStick out tonguerompt /FU "c:\WINNT\microsoft.net\Framework\v2.0.50727\System.dll" /FU "d:\SRC\VirtualEarth-Test\Release\LocalSearch_Main\LocalSearch\Target\debug\System.Data.dll" /FU "c:\WINNT\microsoft.net\Framework\v2.0.50727\System.XML.dll" /FU "c:\WINNT\microsoft.net\Framework\v2.0.50727\System.Web.dll"</P>
<P align=left>&nbsp;</P>
<P align=left><FONT face=Arial size=2></FONT>&nbsp;</P>