invoke GCJ .o files from C/C++ program
Cecilia Vy-Ai Le
a1tv86@yahoo.com
Thu Jul 13 07:58:00 GMT 2000
>Did you try configuring with
"--enable-threads=posix"? >It may be that there is a
problem with
>the "--enable-threads=none" configuration.
I build libgcj with "--enable-threads=posix" option.
The problem is still there. Here is the stack trace:
(gdb) bt
#0 0xef6e7820 in _CL_Q34java4util4Date () from
/usr/local/lib/libgcj.so.1
#1 0x1647c in printLineFromJava () at CCJava.cc:10
#2 0x1640c in JavaMain::run () at CCRunJava.cc:11
#3 0x162e8 in JavaMain.main (args=0x3558c) at
JavaMain.java:7
#4 0xef64da28 in gnu::gcj::runtime::FirstThread::run
(this=0xef04bf30)
at
../../../../source/libgcj-snapshot-2000-07-07/libjava/gnu/gcj/runtime/natFirstThread.cc:146
#5 0xef65822c in java::lang::Thread::run_
(obj=0xef04bf30)
at
../../../../source/libgcj-snapshot-2000-07-07/libjava/java/lang/natThread.cc:263
#6 0xef6707e4 in really_start (x=0x0)
at
../../../../source/libgcj-snapshot-2000-07-07/libjava/posix-threads.cc:344
But, I found the way to work arround. I remove
'virtual' keyword from the prototype for
::JavaTool::printLine(). Here is the change:
class ::JavaTool : public ::java::lang::Object
{
public:
//virtual void printLine (); -- generated by gcjh
void printLine();
JavaTool ();
};
What do you think? Is it an issue in gcjh or gcj?
Thanks,
Cecilia
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail ÃÂ Free email you can access from anywhere!
http://mail.yahoo.com/
More information about the Java
mailing list