|
From: Wayne D. <wa...@us...> - 2000-10-06 09:54:42
|
On Fri, 6 Oct 2000, Paul Sokolovsky wrote: > More likely, linker. What mingw versions on which platform do you use? I've tried both the "latest release" package for MSVCRT (mingw runtime 1999-11-07, gcc-2.95.2, and binutils-2.9.4), followed by the "development snapshot" (binutils-19990818-1-msvcrt, gcc-2.95.2-1-msvcrt, and mingw-msvcrt-20000203, both with and without the binutils-fixes-msvcrt). All provide the same result. I haven't attempted to use a CRTDLL version yet. (I downloaded all this from the links on the main mingw web page.) Also, I just tried compiling my rbmake program with all static libraries (with the only exceptions being KERNEL32.DLL, msvcrt.dll, and in one case, WSOCK32.DLL), and got the same load problems as the dll-using versions, so something is very weird here. > The first problem is to find out what exactly module causes the > problem. For dlls, you can use my 'checkdll' thingy at > http://www.is.lg.ua/~paul/devel/ I didn't find any DLL problems (all said they were relocatable, at least). Another strange thing about ld is that, even though the README file in ftp://ftp.nanotech.wisc.edu/pub/khan/gnu-win32/mingw32/snapshots/gcc-2.95.2-1 says that I should be able to use the new -shared option to create a DLL, the --implib option is recognized by ld: gcc -shared -Wl,--implib,libpcre_dll.a -o libpcre.dll get.o pcre.o maketables.o pcreposix.o study.o C:\GCC\BIN\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\i386-mingw32msvc\b in\ld.exe: unrecognized option `--implib' C:\GCC\BIN\MAKE.EXE: *** [libpcre.dll] Error 1 ..wayne.. |