|
From: Hans H. <ha...@2h...> - 2004-05-07 15:03:37
|
Group, I'm trying to compile a dll for use with JNI. I invoke gcc with: gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -mno-cygwin -shared -O2 ... The loader complains: /usr/bin/ld: dllcrt2.o: No such file: No such file or directory collect2: ld returned 1 exit status dllcrt2.o is definitely there in /usr/lib/mingw: ls -l /usr/lib/mingw/dll* -rwxr-x---+ 1 hanshorn Users 1239 May 2 02:42 /usr/lib/mingw/dllcrt1.o* -rwxr-x---+ 1 hanshorn Users 1239 May 2 02:42 /usr/lib/mingw/dllcrt2.o* I tried to add -L/usr/lib/mingw/ to the compile flags - no success! Any clues? H. |