Perhaps a precompiled headers problem?

See <http://www.cocoabuilder.com/archive/message/cocoa/2007/12/19/195207>

-Ken

On Wed, Aug 13, 2008 at 10:05 AM, Jesse Grosjean
<[EMAIL PROTECTED]> wrote:
> Feeling pretty dumb here, but I can't seem to include a .c file in my
> loadable bundle target. I get a ton of errors. Is there some trick that I'm
> missing. Here's what I'm doing.
>
> 1. Create new Xcode "Cocoa Application" project.
> 2. Create new loadable bundle in that project.
> 3. Add new Carbon C file to the application. Compile. It works.
> 4. Add new Carbon C file to the bundle. Compile. And I get 1495 errors
> starting with:
>
> Building target "MyBundle" of project "TestApp" with configuration "Debug" —
> (1495 errors)
>            cd /Users/jesse/Desktop/TestApp
>    /Developer/usr/bin/gcc-4.0 -x c-header -arch i386 -fmessage-length=0
> -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0
> -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk
> -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -iquote
> /Users/jesse/Desktop/TestApp/../builds/TestApp.build/Debug/MyBundle.build/MyBundle-generated-files.hmap
> -I/Users/jesse/Desktop/TestApp/../builds/TestApp.build/Debug/MyBundle.build/MyBundle-own-target-headers.hmap
> -I/Users/jesse/Desktop/TestApp/../builds/TestApp.build/Debug/MyBundle.build/MyBundle-all-target-headers.hmap
> -iquote
> /Users/jesse/Desktop/TestApp/../builds/TestApp.build/Debug/MyBundle.build/MyBundle-project-headers.hmap
> -F/Users/jesse/Desktop/TestApp/../builds/Debug
> -I/Users/jesse/Desktop/TestApp/../builds/Debug/include
> -I/Users/jesse/Desktop/TestApp/../builds/TestApp.build/Debug/MyBundle.build/DerivedSources
> -c
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h
> -o
> /var/folders/DI/DIMbvaZQFpGmNuaJM2eybk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/AppKit-bawztsadvnkohkggpdwhgbqjwsmp/AppKit.h.gch
> In file included from
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12,
>                 from
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:124:
> error: syntax error before '@' token
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:126:
> error: syntax error before '*' token
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:127:
> error: syntax error before '*' token
> ...
>
> Does anyone know what I should do if I want to use code from a .c file in my
> bundle?
>
> Thanks,
> Jesse_______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to