THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/09/2010 at 14:06, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ;
Language(s) : C++ ;
---------
I need to include <windows.h> in my Melange source code files, however, "c4d_system.h" is not very friendly
with it. I'm getting hundreds of errors:
c:\melange\commandline\source\alien_def.h(29) : error C2872: 'LONG' : ambiguous symbol
could be 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\winnt.h(278) : long LONG'
or 'c:\melange\_melange\includes\c4d_system.h(85) : _melange_::LONG'
.\source est.cpp(2252) : error C2872: 'LONG' : ambiguous symbol
could be 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\winnt.h(278) : long LONG'
or 'c:\melange\_melange\includes\c4d_system.h(85) : _melange_::LONG'
.\source est.cpp(2253) : error C2872: 'CHAR' : ambiguous symbol
could be 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\winnt.h(276) : char CHAR'
or 'c:\melange\_melange\includes\c4d_system.h(95) : _melange_::CHAR'
.\source est.cpp(2264) : error C2872: 'UCHAR' : ambiguous symbol
.\source est.cpp(2264) : fatal error C1003: error count exceeds 100; stopping compilation
How can I resolve these data type conflicts? I absolutely need to use <windows.h>.
I'm using the commandline example from the Melange library.
My header looks like:
#include <windows.h>
#include "C4DImportExport.h"
And if I comment out this line in alien_def.h
//using namespace _melange_;
I still get hundreds of errors.