Undefined symbols for architecture i386:
First of all, hello everyone, pleased to be around here, hope we'll get along nicely 🙂
Now onto my problem:
If I try to use a global variable(yes, I know it's not the best way to do it, but I need only some colors to play to play around with) I get this error(s)
I included this time a color, a string and an int, just to test them all out. Even only "analyzing" gives me the error(s).
I tried #importing the "xxx.h" where these variables are declared to several files where I need them(one at a time to see if something is wrong). I even tried not #importing them anywhere, just declaring them. still the error(s) occur. I even tried making myself a class method, but as I said, even only declaring them gives me the error(s).
Any help please? I searched the web up and down, haven't found anything close to my problem. Other remotely close problems were fixed by adding the required framework in the "link binary with libraries" tab.
Eventually I'll just set them from the settings view to a file and use local variables on each of my other views that retrive the values from the file ... if nothing works 😟
my Architectures value is Standard, Base SDK is Latest(4.3), Supported Platforms is iphonesimulator iphoneos, Valid architectures value is armv6 armv7
Guess I'm missing a settings value somwhere :S
Ld /Users/home/Library/Developer/Xcode/DerivedData/myappname-cvxzlcdwwvzoctboksiqc rlzhzvx/Build/Products/Debug-iphonesimulator/myappname.app/myappname normal i386
cd "/Users/home/Desktop/Programele invatare/myappname"
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3 .sdk -L/Users/home/Library/Developer/Xcode/DerivedData/myappname-cvxzlcdwwvzoctboksi qcrlzhzvx/Build/Products/Debug-iphonesimulator -F/Users/home/Library/Developer/Xcode/DerivedData/myappname-cvxzlcdwwvzoctboksi qcrlzhzvx/Build/Products/Debug-iphonesimulator -filelist /Users/home/Library/Developer/Xcode/DerivedData/myappname-cvxzlcdwwvzoctboksiqc rlzhzvx/Build/Intermediates/myappname.build/Debug-iphonesimulator/myappname.buil d/Objects-normal/i386/myappname.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -framework AudioToolbox -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/home/Library/Developer/Xcode/DerivedData/myappname-cvxzlcdwwvzoctboksiqc rlzhzvx/Build/Products/Debug-iphonesimulator/myappname.app/myappname
Undefined symbols for architecture i386:
"_awesomeString", referenced from:
+[Constants myVariables] in Constants.o
"_gBlackColor", referenced from:
+[Constants myVariables] in Constants.o
"_gDefaultColor", referenced from:
+[Constants myVariables] in Constants.o
"_gGrayColor", referenced from:
+[Constants myVariables] in Constants.o
"_gJadeColor", referenced from:
+[Constants myVariables] in Constants.o
"_kBlueColor", referenced from:
+[Constants myVariables] in Constants.o
"_myInteger", referenced from:
+[Constants myVariables] in Constants.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Thank you,
Roland.
Mac mini, Mac OS X (10.6.8)