PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Compilation error : XP with GapiDraw204 using EVC 3.0

hello,

I am trying to build an XP version of my GapiDraw204 game.

But I get this during compilation:

Can somebody shed some light on this for me? All I know is that everything worked with GapiDraw104 with the same code base and development setup.


Thank you in advance.


c:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2146: syntax error : missing ';' before identifier 'ContextRecord'
c:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2501: 'PCONTEXT' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2501: 'ContextRecord' : missing storage-class or type specifiers
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.


thanks
joe
Sounds like you have Visual C++ 6.0. Do you have service pack 5 installed? That might fix the problem.

http://msdn.microsoft.com/vstudio/downl ... fault.aspx
joe · 10 Aug 2003, 17:46 UTC — fixed - but one smallproblem
hi there!

cool - that fixed it but I get this now when linking :

Linking...
LastKnight.obj : error LNK2001: unresolved external symbol __CrtDbgReport
Debug/LastKnight.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


any idea??

thanks again
joe
Don't you just hate it when you finally fix the errors and then it gives you more errors? Does the sample applications compile ok? I hate linker errors.
joe: You might be using an old version of CGapiApplication. Double click on gapiapplication.cpp in your project and search for CrtDebug. CrtDebug was removed in 2.04 to provide full compatibility with STL...
joe · 11 Aug 2003, 10:46 UTC — crtdebug
sbl: Johan, it is definitely the newest version of 2.04. I am raking my head over this one... I have been through every single *.h and *.cpp in my project. There is no where that I reference crtdebug.

Question: I am building a win debug version - I tried building a win release version - and wallah! it worked linked and the program runs like a dream. But I need the debug mode to develop in ... do you know if I can explicitly add a lib so that it can find it?

thanks
joe
You would explicitly add a lib like this:
#pragma comment(lib, "gd204.lib")