From: <no...@so...> - 2001-04-13 18:13:37
|
Bugs item #405495, was updated on 2001-03-02 12:12 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=405495&group_id=2435 Category: ld >Group: Known bugs Status: Open >Priority: 1 Submitted By: Nobody/Anonymous (nobody) Assigned to: Paul Sokolovsky (pfalcon) Summary: linker fooled by the string '-lAux' Initial Comment: I am using the linker from the file ld-2.10.91-20010126.zip and gcc.exe from gcc-2.95.2-20001116.zip. With this combination it was is possible to link with following command: $(CC) -o $@ $(objects) -L../Glaux -lAux -lTk -lFirst -lopengl32 -lglu32 Test showed that is the string -lAux, which foolt the linker. The linker starts and never ends; the linker runs forever. The same error give the simple command gcc main.o -L. -lAux It helps to rename the file libAux.a to libAuxOwl.a ot to use the full name of the lib to prevent the error. Examples: gcc main.o -L. -lAuxOwl $(CC) -o $@ $(objects) -L../Glaux -lAuxOwl -lTk -lFirst -lopengl32 -lglu32 $(CC) -o $@ $(objects) ../Glaux/libAux.lib -L../Glaux -lTk -lFirst -lopengl32 -lglu32 Using gcc.exe and ld.exe from Mumit's last snapshot (Feb. 2000) '-lAux' does not fool the linker. ---------------------------------------------------------------------- >Comment By: Paul Sokolovsky (pfalcon) Date: 2001-04-13 11:13 Message: Logged In: YES user_id=11970 O well, I finally understood what could cause this. 'aux' is a reserved device name on dos/win32. Using it as filename (with any extension) is known to give problems. Since one of the lookup name for -lfoo which ld tries is foo.a, this could cause it. ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2001-03-02 17:49 Message: Logged In: YES user_id=11494 I've tried to duplicate this bug (renaming a lib to libAux.a and linking against) and could not reproduce problem using either CVS ld or Paul's 20000126 release of ld. This is on NT. Danny ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=405495&group_id=2435 |