This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]