Problems compiling C files and adding them to my main project
Problems compiling C files and adding them to my main project
- Subject: Problems compiling C files and adding them to my main project
- From: "Laurent Daudelin" <email@hidden>
- Date: Tue, 30 Mar 2004 18:24:40 -0500
I'm working on a Cocoa application and I have a few C source files and one
Objective-C category using those source files that I want to compile
together to make my application dependant on the resulting binary. I'm not
sure what kind of target I should use for this. Framework? Bundle? Static
library? Any suggestion?
I would like to avoid adding them to my main application so that I wouldn't
have to recompile them everytime I clean and rebuild my app, hence the
sub-project kind of thing I'm looking for.
I've tried to create a new bundle target. I added the Objective-C category
header and source and the other C header and source files. When I try to
build, I get something like 3766 errors. They start with the following:
CompileC build/Skimmer.build/XMLParse.build/Objects-normal/ppc/hashtable.o
hashtable.c normal ppc c com.apple.compilers.gcc.3_3
mkdir -p
/Users/laurent/Documents/Development/Personal/Skimmer/build/Skimmer.build/XM
LParse.build/Objects-normal/ppc
cd /Users/laurent/Documents/Development/Personal/Skimmer
/usr/bin/gcc-3.3 -x c -arch ppc -pipe -Wno-trigraphs -fasm-blocks
-fpascal-strings -g -O0 -mtune=G4 -Wno-four-char-constants -Wmost -O0
-fmessage-length=0 -ffix-and-continue
-F/Users/laurent/Documents/Development/Personal/Skimmer/build
-I/Users/laurent/Documents/Development/Personal/Skimmer/build/include
-I/Users/laurent/Documents/Development/Personal/Skimmer/build/Skimmer.build/
XMLParse.build/DerivedSources
-Wp,-header-mapfile,/Users/laurent/Documents/Development/Personal/Skimmer/bu
ild/Skimmer.build/XMLParse.build/XMLParse.hmap -include
/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h -c
/Users/laurent/Documents/Development/Personal/Skimmer/hashtable.c -o
/Users/laurent/Documents/Development/Personal/Skimmer/build/Skimmer.build/XM
LParse.build/Objects-normal/ppc/hashtable.o
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:9,
from
/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10,
from <command line>:6:
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:56:
error: syntax error at '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:56:
error: parse error before "NSString"
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:58:
error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:59:
error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:60:
error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:61:
error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:64:
error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:65:
error: parse error before '*' token
There is obviously something I don't understand with Xcode 1.1. Can anybody
enlighten me? I've searched the archived, checked the Xcode 1.1. release
note but I can't find answers to my problems.
Thanks in advance!
-Laurent.
--
========================================================================
Laurent Daudelin Developer, Multifamily, ESO, Fannie Mae
mailto:email@hidden Washington, DC, USA
************************ Usual disclaimers apply ***********************
_______________________________________________
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.