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: Compile JNII with g++



Hey,

try with parameter: -ObjC

Christopher Atlan

Am 29.03.2005 um 17:38 schrieb Scott Palmer:

On Mar 29, 2005, at 6:48 AM, Josef Henryson wrote:

Scott,

Thank you, this is probably it. I had no idea there was a difference between the C and C++ style.

Do you know where I can find more information on this? I have searched different JNI tutorials but the info on this is limited..

I always go to the source http://java.sun.com/ The C-style and C++-style is mentioned somewhere in the official Sun docs. If the tutorials there are the tutorials that you have already read then the next step would be to google and read the java C header files for JNI, as you've obviously started to...

For example, I noticed in the header file these lines:

#ifdef __cplusplus
extern "C" {
#endif

Does it mean I have to explicitly define __cplusplus somewhere or is this handled by the compiler?

That's handled by the compiler.

Cheers,

Scott _______________________________________________
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
 _______________________________________________
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



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.