Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode JNI project



Hi Ken,

Thanks for the detailed info Mike. Changing the C file to an M file did the trick. I'm not sure why it was causing build issues previously. I've found XCode to be somewhat volatile.

Xcode/gcc will not use the Objective-C lexer on C files. The .m extension tells the compiler to expect ObjC syntax. If you write Objective-C code, or include a header that declares Objective-C types, you must rename the file as .m. Plain and simple.


Glad to hear you've got things working.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >XCode JNI project (From: Ken Orr <email@hidden>)
 >Re: XCode JNI project (From: Michael Hall <email@hidden>)
 >Re: XCode JNI project (From: "Alexei Svitkine" <email@hidden>)
 >Re: XCode JNI project (From: Ken Orr <email@hidden>)
 >Re: XCode JNI project (From: Mike Swingler <email@hidden>)
 >Re: XCode JNI project (From: Ken Orr <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.