From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28915 invoked by alias); 29 Mar 2003 22:30:34 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 28907 invoked from network); 29 Mar 2003 22:30:34 -0000 Received: from unknown (HELO pacific-carrier-annex.mit.edu) (18.7.21.83) by sources.redhat.com with SMTP; 29 Mar 2003 22:30:34 -0000 Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id h2TMUXXw014162; Sat, 29 Mar 2003 17:30:33 -0500 (EST) Received: from manawatu-mail-centre.mit.edu (MANAWATU-MAIL-CENTRE.MIT.EDU [18.7.7.71]) by grand-central-station.mit.edu (8.12.4/8.9.2) with ESMTP id h2TMUWu2012425; Sat, 29 Mar 2003 17:30:32 -0500 (EST) Received: from laozi.mit.edu (LAOZI.MIT.EDU [18.19.0.170]) ) by manawatu-mail-centre.mit.edu (8.12.4/8.12.4) with ESMTP id h2TMUWV3019073; Sat, 29 Mar 2003 17:30:32 -0500 (EST) Received: (from ksdb@localhost) by laozi.mit.edu (8.9.3) id RAA08079; Sat, 29 Mar 2003 17:30:32 -0500 Subject: Re: Linking error problem related to #includes From: Kevin S D Beach To: Gaurav Bansal Cc: gsl-discuss@sources.redhat.com In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 29 Mar 2003 22:30:00 -0000 Message-Id: <1048977032.7920.3.camel@laozi.mit.edu> Mime-Version: 1.0 X-SW-Source: 2003-q1/txt/msg00222.txt.bz2 On Sat, 2003-03-29 at 17:13, Gaurav Bansal wrote: > Hello > > I have a program that uses gnu-gsl eigen value library. > $ make > g++ -Igsl -o deletethis.o -c deletethis.cpp > g++ -Igsl -o matrix.o -c matrix.cpp > g++ -Igsl -o vector_ops.o -c vector_ops.cpp > g++ -Igsl -o utility.o -c utility.cpp > g++ -Igsl -o qrstep.o -c qrstep.c > g++ -Igsl -o symm.o -c symm.c > g++ -Igsl deletethis.o matrix.o vector_ops.o utility.o symm.o qrstep.o You need to tell the linker which gsl libraries you're using and to specify the directory using the -L flag. For example, on my machine I might compile with something like g++ -I/mit/gnusl/include test.cc -L/mit/gnusl/lib -lgsl -lgslcblas -lm Kevin