Creating instances of Java classes from within C++
fubnuts
dan@draig.co.uk
Thu Dec 20 12:36:00 GMT 2007
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.
More information about the Java
mailing list