|
From: | Anders Ellingsen Stephansen |
Subject: | [Help-gsl] Gsl and Eclipse IDE |
Date: | Mon, 21 Sep 2009 19:42:35 +0200 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Hello.Im trying to implement the gsl in a eclipse-based ide for altera nios systems, "NIOS II EDS". When building the rng-excample on top of http://www.gnu.org/software/gsl/manual/html_node/Random-Number-Distribution-Examples.html i get the following message:
obj/rng_ex.o(.text+0x28): In function `main': ../rng_ex.c:22: undefined reference to `gsl_rng_env_setup'obj/rng_ex.o(.text+0x2c):../rng_ex.c:24: undefined reference to `gsl_rng_default' obj/rng_ex.o(.text+0x2c):../rng_ex.c:24: Unable to reach gsl_rng_default (at 0x00000000) from the global pointer (at 0x0401a044) because the offset (-67215428) is out of the allowed range, -32678 to 32767.
I expect there's a problem with the linking. When manually compiling/linking everything from a shell, everything works fine, but in this ide, I have to build the makefile from the gui. (Project->Properties->C/C++ Build), and it's a pain.
Any ideas? Regards
[Prev in Thread] | Current Thread | [Next in Thread] |