|Page 1 of 1|
|Author:||LittleCodingFox [ Mon Jul 18, 2011 8:36 pm ]|
|Post subject:||LPCTSTR redefinition|
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?
|Author:||Greg [ Tue Jul 19, 2011 2:33 am ]|
|Post subject:||Re: LPCTSTR redefinition|
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.
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group