From: Greg C. <chi...@mi...> - 2000-10-06 13:31:50
|
Wayne Davison wrote: > > 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: ^ I think you meant to say 'not' here > 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 Search mailing list archives for 'out-implib'; you'll see messages like this one: -------- Original Message -------- Subject: [mingw32] Re: Beta tester for gcc-2.95.2-1 Date: Sat, 29 Jan 2000 10:56:57 -0600 (CST) From: Mumit Khan <khan@NanoTech.Wisc.EDU> Reply-To: mi...@eg... To: mi...@eg... On Fri, 28 Jan 2000, Danny Smith wrote: > --implib > This didn't work for me: > gcc -shared -Wl,--implib,libmk4dll.a -o mk4.dll $(OBJS) > nor did this: > gcc -shared -Wl,--output-lib,libmk4dll.a -o mk4.dll $(OBJS) > But this does: > gcc -shared -Wl,--out-implib,libmk4dll.a -o mk4.dll $(OBJS) > ^^^^^^^^^^ Yeah, this is a unfortunate change, but DJ had decided to use --out-implib instead, which IMO is more representative of what it is than --output-lib. `ld --help' should list these options of course. |