Multiple def. of symbol??

Member
Posts: 30
Joined: 2006.05
Post: #1
I'm getting an error as follows when compiling with g++:

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 = "";
#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?
Quote this message in a reply
Member
Posts: 30
Joined: 2006.05
Post: #2
Turns out I did have a multiple definition problem - for some reason I missed it.

All fixed now.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  link redeclared as different kind of symbol in [...] works in simulator, not device sefiroths 8 9,967 Jul 7, 2011 12:43 AM
Last Post: sefiroths
  Undefined symbol & getpixel Jones 7 4,609 May 21, 2006 01:14 AM
Last Post: OneSadCookie