Computer Chess Club Archives


Search

Terms

Messages

Subject: Problems compiling egtb code using VS.NET 2003

Author: Koundinya Veluri

Date: 03:42:58 09/11/03


Hi,

I just got VS.NET 2003 recently and I'm having trouble compiling the egtb code
in the console version of King of Kings. Strange thing is, it is compiling in
the GUI version and not compiling in the console version; I #include the exact
same files in both projects. I made a test program which doesn't compile either:

#include "../King of Kings/Engine/ChessBoard.h"
#include "../King of Kings/Engine/TBIndex.h"

int main()
{
    return 0;
}

Errors:

C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\ObjIdl.h(10860): error C2238: unexpected token(s)
preceding ';'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\ObjIdl.h(10860): error C2059: syntax error : '='

I don't get these errors when compiling the GUI version probably because it uses
the precompiled headers, I don't really know. But anyway, I found that TBIndex.h
(which I renamed from TBIndex.cpp) #includes windows.h somewhere. And windows.h
includes ole2.h. Eventually ObjIdl.h is included and I get an error here, though
the code in ObjIdl.h looks fine. The relevent code in windows.h:

#ifdef INC_OLE1
#include <ole.h>
#else
#include <ole2.h>
#endif /* !INC_OLE1 */

I have a feeling the GUI version #defines INC_OLE1 somewhere because if I remove
the #else block it compiles fine. Seems like something is wrong in ole2.h, but I
can't find it so I don't know. Am I the only one getting this?

Koundinya



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.