When going to compile a program I am working on there is an error with the linker that I don't completely understand. It is a duplicate symbol error but the symbol in question is an instance of a struct which is defined in an include file (must be global). I am confused as to why I am getting this. The IDE is Xcode on Mac Os X 10.7 (Lion), intel 64 bit.
The exact error is "ld: duplicate symbol _ssf"
ssf is the instance.
Multiple files/functions share the object. Also the object is declared with the definition of the structure. Can you clarify what the issue is, I am not sure I fully understand.
It may be easier if you show the code.
If you want a global variable shared along cpps, declared it asextern. You will need to define it somewhere (just one time)