GameMonkey Script

GameMonkey Script Forums
It is currently Mon Nov 20, 2017 3:35 pm

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 
Offline

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?


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

Joined: Mon Dec 15, 2003 1:38 pm
Posts: 698
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.


Top
 Profile  
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 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Group