[beginner cocoa] cocoa tutorial (Currency Converter) won't build.
[beginner cocoa] cocoa tutorial (Currency Converter) won't build.
- Subject: [beginner cocoa] cocoa tutorial (Currency Converter) won't build.
- From: David Thorp <email@hidden>
- Date: Sat, 9 Aug 2003 00:59:04 +1000
Greetings again all...
I've been going through the Cocoa tutorial
<file:///Developer/Documentation/Cocoa/ObjCTutorial> that comes with
the Developer Tools. (I haven't finished going through the ObjC.pdf
file yet, I just thought I'd jump ahead a bit for fun)... Nice little
tutorial that takes me through building a simple app - a currency
converter.
I've gone through the whole darn thing up to building it, but upon
doing so, I get the following errors displayed under the "Build" tab:
Building target Currency Converter with build style Development
(optimization:level 0, debug-symbols:on) (2 errors)
Missing file or directory: Currency
Missing file or directory: Converter_Prefix.h
Build Failed (2 errors)
If it's worth anything, the more detailed outline or whatever it is
says (although I can't follow any of this):
/Developer/Private/jam -d1 -j3
JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase
JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=3.1
BUILD_STYLE=Development
"CPP_HEADERMAP_FILE=/Users/david/Documents/Developer/Currency
Converter/build/Currency Converter.build/Currency
Converter.build/Currency Converter.hmap"
"SRCROOT=/Users/david/Documents/Developer/Currency Converter"
"OBJROOT=/Users/david/Documents/Developer/Currency Converter/build"
"SYMROOT=/Users/david/Documents/Developer/Currency Converter/build"
"DSTROOT=/tmp/Currency Converter.dst"
Missing file or directory: Currency
Missing file or directory: Converter_Prefix.h
My understanding was that if you click on one of the errors, then it
should highlight in the code where the error is. This isn't working.
I can only start guessing why it's saying this. I believe I've
followed the tutorial's instructions to the letter.
When I initially created the Currency Converter project, a file
"Currency Converter_Prefix.h" was included in the same group as the
"main.m" file (and is still there). I can't help thinking the errors
are something to do with that - something is reading it seeking two
files called "Currency" and "Converter_Prefix.h", because a space isn't
meant to be somewhere, or something like that. But I can't find
anything in any of the source code that is looking for "Currency" or
"Converter_Prefix.h".
I wondered if perhaps when I created the project I wasn't supposed to
include a space in the project name (i assume that prefix.h file's name
is created by default based on the name of the project). But I checked
that theory against the beginning of the tutorial, and no I have
created the file names correctly.
The only thing I did different to the tutorial is create the project
folder in a different directory right from the start
(~/Documents/Developer/Currency Converter instead of ~/Currency
Converter). I find it hard to believe that's the problem.
I know without seeing my project/source code, it may be hard for any of
you to give me answers here, but if anyone's got any ideas, I'll be
most grateful. Please remember this is my first experience with
Project builder and Cocoa, so I won't be able to keep up if you throw
too many big words at me :-)
Thanks in advance if you can help!
David.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.