I have a problem with my project. when i build my project, i have an error. It shows duplicate symbol _sprites for _game
ld: 2 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have a problem with my project. when i build my project, i have an error. It shows duplicate symbol _sprites for _game
ld: 2 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had this same error, it was because I defined a constant with the same name in two separate .m files. Once I changed the name in one of them, it compiled.
For example in my ViewController.m I had:
#import "ViewController.h"
const int IPHONE4 = 480;
and in my Menu.m:
#import "Menu.h"
const int IPHONE4 = 480;
I changed my Menu.m to:
#import "Menu.h"
const int IPHONE4H = 480;