View Full Version : using Eclipse and GCC compiler to develop plugin? - compiler error...

November 16th, 2006, 07:49 AM

I trying to build my first plug-in for Girder, and trying to use Eclipse/CDT together with the GCC compiler.

When I try to include the girder.h file the compiler reports errors on line 450/451 and a warning on line 648.

This is the output from the compiler:
D:/Program Files/Promixis/Girder/includes/girder4.h:450: error: expected `,' or `...' before '^' token
D:/Program Files/Promixis/Girder/includes/girder4.h:451: error: expected `,' or `...' before '^' token
D:/Program Files/Promixis/Girder/includes/girder4.h:648:7: warning: no newline at end of file

The lines contain the following:

450: DWORD WINAPI ReadEnvVar ( PCHAR name, PCHAR buffer, DWORD size, BYTE xor);
451: BOOL WINAPI SetEnvVar ( PCHAR name, PCHAR value, BYTE xor);

The 'xor' variable name gets highlighted as keyword in the editor when I view the girder.h file.

Can anyone help?

Thanks in advance

Rob H
November 16th, 2006, 09:22 AM
I'm no C programmer, but I'd guess that there's a macro defined in an include file for 'xor' so the preprocessor is converting it to '^'

November 16th, 2006, 10:50 AM
simply change the xor to xxor in the header file. It won't impact anything.