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]

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!


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