Re: OK, I give up... help a dumb newbie
Re: OK, I give up... help a dumb newbie
- Subject: Re: OK, I give up... help a dumb newbie
- From: "Theodore H. Smith" <email@hidden>
- Date: Tue, 27 Jul 2004 13:37:32 +0100
1) Delete the main file that Xcode creates.
2) Menu: Project -> "New Target"
I can't promise that's a good answer, but I think thats it. On your
project getting upset about removing the main file, I don't know why,
but when I had that, I just had to remove some more things to get it to
work. Remove a .nib file or that kind of extra thing.
Did you use the "C++ tool" stationary?
I'm trying to use XCode to build a pure C/C++ project, no cocoa, no
GUI, just plain text command line style stuff. And I'm failing
hopelessly.
The problem:
I need multiple targets and I can't for the life of me figure this out.
I have a make file which will happily build from the command line, with
any number of targets and dependencies. I have about 5 files with a
main function. They test different aspects of the code. Naturally each
target uses one and only one of those options. Then there is a large
set of other common files, organised in a sensible directory
structure. They are all useful, they are not all made by me as this is
a shared project (with another guy working on Win32 and Visual C++ and
another using pure C on a mac with no C++ and no IDE, just a makefile.)
Do I need mutliple projects, one for each main??
And then when I start a project it insists on generating a main.cpp,
and when I import my files it gets upset to find that my file in
TestCode/Tester.cpp also has a main function, and likewise gets upset
when I try to remove the main.cpp file.
I realise that this is beginner getting-started stuff - but all the
tutorials and guides I can find have been no help at all. I'm getting
desperate. Must I go back to emacs and gdb and make??? Will the Visual
C++ guy laugh at my puny Mac?
--
Theodore H. Smith - Software Developer.
http://www.elfdata.com
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.