Multiple def. of symbol??
I'm getting an error as follows when compiling with g++:
The only definition of RSRC_PREFIX I can find is in one source file, main.cpp:
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?
Code:
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:
Code:
#if defined(__MACOSX__)
char* RSRC_PREFIX = "TestOne.app/Contents/Resources/";
#else
char* RSRC_PREFIX = "";
#endifChanging 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?
My Game Dev Page:
http://whindgames.50webs.com/
StressFracture: http://www.sourceforge.net/projects/stressfracture
Turns out I did have a multiple definition problem - for some reason I missed it.
All fixed now.
All fixed now.
My Game Dev Page:
http://whindgames.50webs.com/
StressFracture: http://www.sourceforge.net/projects/stressfracture
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| link redeclared as different kind of symbol in [...] works in simulator, not device | sefiroths | 8 | 7,414 |
Jul 7, 2011 12:43 AM Last Post: sefiroths |
|
| Undefined symbol & getpixel | Jones | 7 | 3,982 |
May 21, 2006 01:14 AM Last Post: OneSadCookie |
|

