Greywhind
2006.06.17, 08:24 PM
I'm getting an error as follows when compiling with g++:
ld: multiple definitions of symbol _RSRC_PREFIX
/var/tmp//cc9Q2Snz.o definition of _RSRC_PREFIX in section (__DATA,__data)
/var/tmp//ccoQU2n1.o definition of _RSRC_PREFIX in section (__DATA,__data)
The only definition of RSRC_PREFIX I can find is in one source file, main.cpp:
#if defined(__MACOSX__)
char* RSRC_PREFIX = "TestOne.app/Contents/Resources/";
#else
char* RSRC_PREFIX = "";
#endif
Changing it to RSRC_PREF just changes the mult. def. to _RSRC_PREF, so that's clearly where the problem is, but it's not defined anywhere else...
Anyone know what could be the problem?
ld: multiple definitions of symbol _RSRC_PREFIX
/var/tmp//cc9Q2Snz.o definition of _RSRC_PREFIX in section (__DATA,__data)
/var/tmp//ccoQU2n1.o definition of _RSRC_PREFIX in section (__DATA,__data)
The only definition of RSRC_PREFIX I can find is in one source file, main.cpp:
#if defined(__MACOSX__)
char* RSRC_PREFIX = "TestOne.app/Contents/Resources/";
#else
char* RSRC_PREFIX = "";
#endif
Changing it to RSRC_PREF just changes the mult. def. to _RSRC_PREF, so that's clearly where the problem is, but it's not defined anywhere else...
Anyone know what could be the problem?