When building on Ubuntu 12.x the build fails with the following error…

gcc samples/generate/main.o -lm -Llib -lnmea -o build/samples_generate
lib/libnmea.a(generate.o): In function `nmea_gsv_npack':
generate.c:(.text+0x700): undefined reference to `ceil'
collect2: ld returned 1 exit status
make: *** [samples_generate] Error 1

gcc  samples/generate/main.o -lm -Llib -lnmea -o build/samples_generate
lib/libnmea.a(generate.o): In function `nmea_gsv_npack':
generate.c:(.text+0x700): undefined reference to `ceil'
collect2: ld returned 1 exit status
make: *** [samples_generate] Error 1

This forum posting shows that the problem is a fairly widespread consequence of a change to the build tools on Ubuntu

A resolution on Ubuntu is to edit the makefile, replacing

LIBS = -lm -Llib -lnmea

    with

LIBS = -Llib -lnmea -lm

At line 14.

http://sourceforge.net/p/nmea/discussion/677597/thread/cd46c3b9

 

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2021-05-18
  • 2021-08-02
  • 2021-09-28
  • 2021-06-08
  • 2021-07-22
  • 2021-10-12
猜你喜欢
  • 2022-02-28
  • 2021-12-14
  • 2021-07-15
  • 2022-01-19
  • 2022-12-23
  • 2021-12-03
  • 2021-12-26
相关资源
相似解决方案