Menu

#3 Make error libgsl referenced before input

v1.0_(example)
open
None
5
2013-07-01
2013-07-01
No

I've tried building the latest version and there was an issue with linking. Mainly with finding elements of libgsl.

I made the following change in the make file and it worked.
@$(GCC) $+ $(CFLAGS) -o $@

Basically switched $+ so that the flags will come after it otherwise you get the following errors:
Linking lanet...
distribute_components.o: In function give_new_random_position(int, int, double*, double*, double*, double, double, double, int, gsl_rng*, int)': /home/user/Downloads/LaNet-vi_3.0.0/src/distribute_components.cpp:193: undefined reference togsl_rng_uniform'
/home/user/Downloads/LaNet-vi_3.0.0/src/distribute_components.cpp:194: undefined reference to gsl_rng_uniform' distribute_components.o: In functiondistribute_components(double, double, double, int, double, double, double, double)':
...
... (the list goes on for a while)
...
collect2: error: ld returned 1 exit status
make: *** [lanet] Error 1

I am using ubuntu 13.04

Discussion


Log in to post a comment.

MongoDB Logo MongoDB