help-gsl
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Help-gsl] Random generator: linking problem Joseph Wakeling Mon May 11 12:00:32 2009
Marco Tului wrote: > I have read the GSL manual, and in my Makefile I wrote: > > ::::::::::::::::::::::: > # RANDOM_NUMBER_GENERATOR > random_generator.o: random_generator.hpp random_generator.cpp > g++ -c random_generator.cpp -lgsl -lgslcblas -lm > :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: This is the source of your problem. You don't need the -lgsl -lgslcblas -lm when you are compiling the source into object files -- you need it at the linking stage. So remove the -lgsl etc from the section above and add them to the part where you compile all the .o files into the executable. Then it should work. :-) _______________________________________________ Help-gsl mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/help-gsl
- [Help-gsl] Random generator: linking problem Marco Tului
- Re: [Help-gsl] Random generator: linking problem Carl Boettiger
- Re: [Help-gsl] Random generator: linking problem Marco Tului
- Re: [Help-gsl] Random generator: linking problem Joseph Wakeling <=
- Re: [Help-gsl] Random generator: linking problem Marco Tului