GameMonkey Script

GameMonkey Script Forums
It is currently Thu Jan 28, 2021 8:32 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: LPCTSTR redefinition
PostPosted: Mon Jul 18, 2011 8:36 pm 

Joined: Sun Apr 12, 2009 11:01 pm
Posts: 22
I'm using the latest GameMonkey build (1.28.1 I believe), and while compiling on Visual C++ 2008, I get the following compiler error:

gmconfig_p.h(111) : error C2371: 'LPCTSTR' : redefinition; different basic types

I was using an older version of GameMonkey before I upgraded, and the code worked fine. What can I do?

Reply with quote  
 Post subject: Re: LPCTSTR redefinition
PostPosted: Tue Jul 19, 2011 2:33 am 

Joined: Mon Dec 15, 2003 1:38 pm
Posts: 708
I'm not sure why behavior would change between GM versions. That line of header code seems to be ancient and appears to relate to Scintilla used by the GMD project. I could not repro this myself by building the 2005 GME solution with VS 2008. Here's a few thoughts...

1) Since you're unlikely to be using GMD / Scintilla, just comment out the line from gmConfig_p.h. The gmConfig_p.h file is purposely external to the GM core files as it is intended to be modified by users according to their needs. Eg. compiler flags, operating system, other APIs/SDKs.
2) Try changing the order of #includes of windows.h, afx.h or whatever windows platform SDK files you are using.
3) Try temporarily reverting to an older GM version to verify the cause and effect.

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group