Hi; I am reading "Advanced Mac OS X Programming" by Mark and Aaron. I can't get one terminal statement to work correctly :
cc -g -o useadd -F./Adder/build -framework Adder useadd.m
It's on page 45 - Chapter 3 (Libraries). As you can see, I am trying to link useadd.m against a framework created using Xcode. When I run this command, I get this error :
ld: framework not found Adder
collect2: ld returned 1 exit status
I made sure that the folder /Adder/build exists under the current directory. Inside that folder, there is another one : Adder.build that contains the framework. I have been trying every possible combination, but the linker just can't find my framework.
I am using Mac OS X Leopard, and I think the book was published before Leopard, when Tiger was still the most recent Mac OS.
Can you help me please?