This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Creating instances of Java classes from within C++
- From: fubnuts <dan at draig dot co dot uk>
- To: java at gcc dot gnu dot org
- Date: Thu, 20 Dec 2007 04:36:16 -0800 (PST)
- Subject: Creating instances of Java classes from within C++
Hi All,
I'm using Dev C++ to write a simple C++ application that uses a Java class
that has been built with GCJ. When I compile the application in Dev C++ I
get lots of errors relating to "atexit", "_onexit" and "__do_sjlj_init" -
according to the output there are multiple definitions of these.
When I remove the reference to my java .o file it all compiles fine so I'm
thinking that i've maybe not used gcj properly. The command line I used to
build the .o file was:
gcj -shared -o NewClass.o NewClass.java
Is this correct? I think it probably isn't because of the multiple
definitions of atexit etc.
Any help would be greatly appreciated; I can send all the source code if
that will help...
Cheers,
Dan.
--
View this message in context: http://www.nabble.com/Creating-instances-of-Java-classes-from-within-C%2B%2B-tp14435607p14435607.html
Sent from the gcc - java mailing list archive at Nabble.com.