cosmoharrigan / rl-glue

Automatically exported from code.google.com/p/rl-glue
0 stars 0 forks source link

Error linking Glue_utilities.c #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I compiled the Network_C example from the latest 2.0.3 code and I got this
error

gcc -o bin/RL_agent Build/SarsaAgent.o Build/Glue_utilities.o
Build/RL_client_agent.o Build/RL_agent_netlib.o 
Build/Glue_utilities.o: In function `parse_range':
/home/chris/rl-glue.2.0.3/Examples/Network_C/../../Utils/Glue_utilities.c:26:
undefined reference to `sqrt'
/home/chris/rl-glue.2.0.3/Examples/Network_C/../../Utils/Glue_utilities.c:52:
undefined reference to `sqrt'
collect2: ld returned 1 exit status
make: *** [RL_agent] Error 1

for which I have included a fix. The problem is that the math library needs
to be linked to Glue_utilities.c
  chris mansley

Original issue reported on code.google.com by chris.ma...@gmail.com on 17 Oct 2007 at 8:18

Attachments:

GoogleCodeExporter commented 9 years ago
Assigned to myself because I'm doing makefile stuff already.

Original comment by markp...@gmail.com on 18 Oct 2007 at 5:41

GoogleCodeExporter commented 9 years ago

Original comment by markp...@gmail.com on 18 Oct 2007 at 5:42

GoogleCodeExporter commented 9 years ago
Example makefiles now build with -lm

Original comment by markp...@gmail.com on 19 Oct 2007 at 10:58