LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-01-2012, 11:36 PM   #1
thethinker
Member
 
Registered: Jul 2006
Location: Tallahassee, FL
Distribution: Slackware 12
Posts: 96

Rep: Reputation: 15
GSL on Cygwin can't find the Monte Carlo library.


Hey all, trying to get a program that I wrote (and runs perfectly...) in Slackware using GSL to run on Cygwin. Here's what happens:

Code:
gcc -lgsl -lgslcblas -lm -o SD_Plot SD_Plot.o
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2a6): undefined reference to `_gsl_monte_miser_                             alloc'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2ae): undefined reference to `_gsl_rng_env_setu                             p'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2b3): undefined reference to `_gsl_rng_default'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2c1): undefined reference to `_gsl_rng_alloc'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x4a7): undefined reference to `_gsl_monte_miser_                             integrate'
collect2: ld returned 1 exit status
makefile:11: recipe for target `SD_Plot' failed
make: *** [SD_Plot] Error 1
Ok, so the library is wrong. I checked the libraries the only way I know:

Code:
$ gsl-config --libs
-L/usr/lib -lgsl -lgslcblas

$ gsl-config --libs-without-cblas
-L/usr/lib -lgsl

$ gsl-config --cflags
-I/usr/include
Ok. Then I try with those flags:

Code:
$ gcc -L/usr/lib -lgsl -lgslcblas -I/usr/include -lm -o SD_Plot SD_Plot.o
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2a6): undefined reference to `_gsl_monte_miser_alloc'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2ae): undefined reference to `_gsl_rng_env_setup'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2b3): undefined reference to `_gsl_rng_default'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x2c1): undefined reference to `_gsl_rng_alloc'
SD_Plot.o:SD_Plot-0.9.c:(.text+0x4a7): undefined reference to `_gsl_monte_miser_integrate'
collect2: ld returned 1 exit status
Any ideas? What am I missing here? Remember that the thing runs fine on Slackware with the default GSL install. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Compilation error - GSL library + MPI Benchmark Library = undefined reference quadpixels Programming 2 01-21-2012 10:09 PM
error: GSL CBLAS library not found tony_lincon Linux - Newbie 5 06-18-2010 02:14 PM
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM
gsl_sf_coulomb_wave_FG_e in gsl library darknails Programming 0 05-09-2005 10:32 AM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration