Re: compile errors
Manage your shell environment variables and aliases
Brought to you by:
leomania,
xdelaruelle
From: Ian F. <fl...@cs...> - 1997-06-13 20:15:47
|
Paul Labrie <pl...@em...> (Paul) writes: Paul> gcc -o modulecmd -L/usr/lib/X11 ModuleCmd_Avail.o Paul> ModuleCmd_Clear.o ModuleCmd_Display.o ModuleCmd_Help.o Paul> ModuleCmd_Init.o ModuleCmd_List.o ModuleCmd_Load.o Paul> ModuleCmd_Purge.o ModuleCmd_Switch.o ModuleCmd_Update.o Paul> ModuleCmd_Use.o ModuleCmd_Whatis.o cmdAlias.o cmdConflict.o Paul> cmdInfo.o cmdMisc.o cmdModule.o cmdPath.o cmdSetenv.o cmdUname.o Paul> cmdXResource.o cmdUlvl.o cmdLog.o cmdTrace.o cmdVersion.o Paul> cmdVerbose.o cmdWhatis.o init.o locate_module.o utility.o main.o Paul> error.o getopt.o -ltcl -lXmu -lXt -lX11 -ldl -lm Paul> -l/disks/sources/tcl7.6/generic -l/disks/sources/tcl7.6/unix Paul> collect2: ld returned 4 exit status Paul> ld: -l/disks/sources/tcl7.6/generic: expected libx.so(.major.minor.xxx) The problem isn't that there is a library missing, rather you have supplied an invalid library. What you really want at the end there is: -L/disks/sources/tcl7.6/generic -L/disks/sources/tcl7.6/unix Also, if you're going to be using Modules 3.0 Beta 1, you should get my patches from http://www.cs.wustl.edu/~flan/ Ian |