This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using static libraries


Daniel Rohe writes:
 >  >g++ -static -lgsl -lgslcblas gsl_test.c -o gsl_test.out
 > /usr/tmp/ccpuyfqp.o: In function `main':
 > /usr/tmp/ccpuyfqp.o(.text+0x11): undefined reference to `gsl_isinf'
 > collect2: ld returned 1 exit status
 > 

The "-lgsl -lgslcblas" needs to be at the end of the command line

regards
Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]