bistromath / gr-ais

Automatic Information System decoder for shipborne position reporting for the Gnuradio project
134 stars 47 forks source link

PDU to NMEA Compile Error #9

Closed sinnet3000 closed 3 years ago

sinnet3000 commented 9 years ago

Hello,

I am trying to compile the latest git revision but I get the following error:

/gr-ais/lib/pdu_to_nmea_impl.cc:119:46: error: ‘snprintf’ was not declared in this scope snprintf(wat, 3, "%02X", checksum); //NMEA 0183 checksum

I don't think that is related at all to my config. (I am using latest Gnu Radio 3.7 from git) Let me know what information could be useful to sort out this.

I tried to compile with the options: mkdir build, cd build, cmake .., make

Thank you,

Luis

gercap commented 9 years ago

Hi,

In the /gr-ais/lib/pdu_to_nmea_impl.cc source file add the following include:

include

It should do the trick.

Germano Capela

On 07/10/2014, at 00:00, Luis notifications@github.com wrote:

/gr-ais/lib/pdu_to_nmea_impl.cc

sinnet3000 commented 9 years ago

Thank you, that did the trick. :)