ios - Linker failed with error code 1 -
i keep getting error linker command failed exit code 1
, seems because of .h-file
. in stringsde.h
define constant strings. might problem?
duplicate symbol _questioncatbuttonmixed in: /users/philip_air/library/developer/xcode/deriveddata/juraquiz-awgytksreajdjbdmoctjoffmzmmk/build/intermediates/juraquiz.build/debug-iphoneos/juraquiz.build/objects-normal/armv7/applaunch.o /users/philip_air/library/developer/xcode/deriveddata/juraquiz-awgytksreajdjbdmoctjoffmzmmk/build/intermediates/juraquiz.build/debug-iphoneos/juraquiz.build/objects-normal/armv7/quizvc.o ld: 17 duplicate symbols architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation)
code:
declare of strings in .h file using:
// questioncat buttons extern nsstring const *questioncatbutton1; extern nsstring const *questioncatbutton2; extern nsstring const *questioncatbutton3; extern nsstring const *questioncatbuttonmixed;
and define them in 1 single .m file this:
// questioncat buttons nsstring * const questioncatbutton1 = @"zivilrecht"; nsstring * const questioncatbutton2 = @"öffentliches recht"; nsstring * const questioncatbutton3 = @"strafrecht"; nsstring * const questioncatbuttonmixed = @"gemischt";
Comments
Post a Comment