boehm-gc/win32_threads.c

Erik Poupaert erik.poupaert@chello.be
Mon Feb 17 15:02:00 GMT 2003


The problem comes from here:

gcc/boehm-gc/win32_threads.c:535:BOOL WINAPI DllMain(HINSTANCE inst, ULONG
reason, LPVOID reserved)

Between 3.2. and 3.3. the symbol DllMain has been added or enabled in
win32_threads.c. This precludes any other library from including DllMain.
Since ltdl apparently uses DllMain to initialize the jni library, I cannot
remove it from the jni library embedded in the executable.

Is there a reason why DllMain needs to be present in win32_threads.c ?

Another consequence. If I understand this right, only one jni library can be
statically linked at a time in the executable?



More information about the Java mailing list