From mboxrd@z Thu Jan 1 00:00:00 1970 From: "GnuWin32" To: , "Gsl Discuss" Subject: Re: Linker Error with GSL/GNUWin32 Date: Wed, 19 Dec 2001 13:20:00 -0000 Message-id: <003a01c1784a$06e0e6c0$382dfb3e@alpha> X-SW-Source: 2001/msg00745.html Most probably, you have mixed Cygwin and Mingw. If you want to create native MS-Windows executables (i.e. executables that depend only on msvcrt.dll and don not require installation of Cygwin), make sure that the Mingw bin directory comes first in your path. If you want to create Cygwin applications, then you cannot use the Gnuwin32 port of Gsl. See the recent postings on this issue. Kees Zeelenberg Vijaya C Ramasami (Vijay) writes: > 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 You might want to CC your message to the GNUWin32 list or the maintainer of the GNUWin32 GSL package. I'm not sure if they read this list. Looks like there is some sort of incompatibility between the system libraries involved anyway. regards Brian Gough From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22491 invoked by alias); 28 Nov 2001 20:19:55 -0000 Mailing-List: contact gsl-discuss-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 22469 invoked from network); 28 Nov 2001 20:19:53 -0000 Received: from unknown (HELO smtp.hccnet.nl) (62.251.0.13) by hostedprojects.ges.redhat.com with SMTP; 28 Nov 2001 20:19:53 -0000 Received: from alpha by smtp.hccnet.nl via uds56-45.dial.hccnet.nl [62.251.45.56] with SMTP id VAA26236 (8.8.8/1.13); Wed, 28 Nov 2001 21:19:47 +0100 (MET) Message-ID: <003a01c1784a$06e0e6c0$382dfb3e@alpha> From: "GnuWin32" To: , "Gsl Discuss" Subject: Re: Linker Error with GSL/GNUWin32 Date: Thu, 22 Nov 2001 05:00:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-SW-Source: 2001-q4/txt/msg00069.txt.bz2 Message-ID: <20011122050000.PcN5wa_21ew62MMA69bnT56a5e_l9gUPPHwUXhCqhRs@z> Most probably, you have mixed Cygwin and Mingw. If you want to create native MS-Windows executables (i.e. executables that depend only on msvcrt.dll and don not require installation of Cygwin), make sure that the Mingw bin directory comes first in your path. If you want to create Cygwin applications, then you cannot use the Gnuwin32 port of Gsl. See the recent postings on this issue. Kees Zeelenberg Vijaya C Ramasami (Vijay) writes: > 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 You might want to CC your message to the GNUWin32 list or the maintainer of the GNUWin32 GSL package. I'm not sure if they read this list. Looks like there is some sort of incompatibility between the system libraries involved anyway. regards Brian Gough