make

Hi,
I want to run make for a "network packet trace reader" which is written in C.
In ubuntu 14.0.4

but I got this error: undefined reference to 'sqrt'

By using -lm ( > make -lm), I got that error again.
What should I do?

Thank you.


You could try make LDLIBS=-lm. It might work, but it depends on how the makefile has been written. If that doesn't work it might be easier to just open up the makefile and edit it manually.
Last edited on
Running make LDLIBS=-lm , I got the same error.

Then I added this line LDLIBS = -lm to makefile. And again the same error!


makefile:
CC = gcc
CFLAG = -wall -03 -c -g
LDLIBS = -lm
...
If the library that you're trying to build is Netrace I think you might have better luck with make LIBS=-lm.
Thank you very much. The solution works...
Last edited on
Registered users can post here. Sign in or register to post.
<rt id="pwjBlLZ"><small id="pwjBlLZ"></small></rt>
<acronym id="pwjBlLZ"></acronym><rt id="pwjBlLZ"></rt>
<tr id="pwjBlLZ"><optgroup id="pwjBlLZ"></optgroup></tr><tr id="pwjBlLZ"><optgroup id="pwjBlLZ"></optgroup></tr><acronym id="pwjBlLZ"><small id="pwjBlLZ"></small></acronym>
<acronym id="pwjBlLZ"><optgroup id="pwjBlLZ"></optgroup></acronym>
<option id="pwjBlLZ"></option>
<tr id="pwjBlLZ"><optgroup id="pwjBlLZ"></optgroup></tr>
<acronym id="pwjBlLZ"><small id="pwjBlLZ"></small></acronym><acronym id="pwjBlLZ"></acronym>
<acronym id="pwjBlLZ"><small id="pwjBlLZ"></small></acronym>
  • 6512882421 2018-04-19
  • 4659652420 2018-04-19
  • 2967832419 2018-04-19
  • 8339042418 2018-04-19
  • 8147112417 2018-04-19
  • 2774752416 2018-04-19
  • 4316132415 2018-04-19
  • 6265742414 2018-04-19
  • 1875142413 2018-04-19
  • 4146552412 2018-04-19
  • 8205662411 2018-04-19
  • 959982410 2018-04-19
  • 7153742409 2018-04-19
  • 9349932408 2018-04-18
  • 6024052407 2018-04-18
  • 2113432406 2018-04-18
  • 7629172405 2018-04-18
  • 163882404 2018-04-18
  • 3515922403 2018-04-18
  • 5047802402 2018-04-18