This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: -dlopen self
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: "Jeff Sturm" <jsturm at one-point dot com>,"GCJ Java" <java at gcc dot gnu dot org>
- Date: Wed, 19 Mar 2003 17:21:16 +0100
- Subject: RE: -dlopen self
> The linking fails, saying "swt.o ... undefined reference to
> 'g_thread_init'". The symbol is defined, however, in -lglib-2.0.
>>>>>> On my machine, g_thread_init is defined in libgthread-2.0.so. It
>>>>>> doesn't appear in libglib-2.0.so at all. This is with GTK 2.2.
You're right.
I had accidentally been reading the 2.2 docs instead of reading 2.0. I must
indeed add "-lgthread-2.0 -lpthread" for the 2.0 version.
It works now! Thanks!