GPS nmealib学习 问题

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

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.  

Simon

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

你可能感兴趣的:(gps)