Re: [Gnuwin32-users] Linker Error with GSL/GNUWin32..
Provides native Win32 open source ports and utilities
Brought to you by:
gnuwin32
|
From: GnuWin32 <gnu...@us...> - 2001-12-07 07:18:26
|
The most probable causes are: either you try to compile with Cygwin GCC and not with Mingw GCC (solution: install Mingw and make sure it comes in your path first before Cygwin), or the '-static' flag is not enough to ensure static linking (it is only for the compiler, the linker should also be given a static flag and this should come before the libraries; I think -Wl,-static is the appropriate link, see the info on Ld in Gcc; alternatively, rename or delete the library libgsl.dll.a so that the linker only finds libgsl.a). Kees Zeelenberg ----- Oorspronkelijk bericht ----- Van: "Vijaya C Ramasami (Vijay)" <rv...@uk...> Aan: "GNUWin32" <gnu...@li...> Verzonden: donderdag 6 december 2001 22:10 Onderwerp: [Gnuwin32-users] Linker Error with GSL/GNUWin32.. > Hi, > > I recently installed GSL using the libraries downloaded from the > GNUWin32 website and I got the following errors while compiling an > example program. Specifically, the linker cannot find references to > "_imp__iob" in two different locations within the libgsl.a library. > Please help.. > > \gslwin\lib/libgsl.a(stream.lo)(.text+0x32):stream.c: undefined > reference to `_imp___iob' > \gslwin\lib/libgsl.a(stream.lo)(.text+0x95):stream.c: undefined > reference to `_imp___iob' > collect2: ld returned 1 exit status > make.exe: *** [testMatrix] Error 1 > > This was the linker command: > gcc -o testMatrix testMatrix.o Matrix.o -L \gslwin\lib -lgsl -lgslcblas > -lm -static > > Thanks, > Vijay. > -- > Vijaya Chandran Ramasami, > GTA, Communication Systems Lab, > The University of Kansas, > Home Phone # 785-312-8001, > Email : rv...@ku... > Home Page : http://www.ittc.ukans.edu/~rvc/ > --------------------------------------------- > "Mathematics is the music of reason" - Sylvester. > > _______________________________________________ > Gnuwin32-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuwin32-users > |