0

i get an undefined reference to _objc_class_name_greeter error when I compile
When I remove the line
Greeter * Hi=[[greeter alloc] init];
it compiles and all but one option works any idea what's wrong with that line
Also the error is at .data+0xa4 and correction it actually happens during linking ?
Take note that I wrote this on my iPod touch and auto correct is on all the time

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Celtrix
0

I have solved the general problem but not my specific problem I'm compiling on Linux so I have to invoke a few extra gcc options
Ex
gcc -o main main.m -lobjc -i /usr/include -L(I'll post this in a little while) -lgnu-base
Ill finish the whole thing in a sec

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.