Opendigitalradio / etisnoop

etisnoop is a ETI file analyser
GNU General Public License v3.0
9 stars 13 forks source link

Compilation on CentOS 7 fails: error: expected ')' before 'PRId64' #16

Closed paraenggu closed 8 years ago

paraenggu commented 8 years ago

Compiling etisnoop on CentOS 7 fails with the following error:

fig0_21.cpp:193:56: error: expected ')' before 'PRId64'
                 sprintf(tmpbuf, ", database key=0x%09" PRId64, key);

After switching from #include <inttypes.h> to #include <cinttypes> etisnoop compiles correctly:

sed -i -e 's/^\(#include\) <inttypes.h>/\1 <cinttypes>/' \
    etisnoop.cpp utils.hpp wavfile.h
mpbraendli commented 8 years ago

Fixed in 8823ffb8e0cd34615f44e5d241030c57a7465153 I find it strange that this makes a difference, but I won't investigate. Thanks for the report!