Page 1 of 1

Help compiling RTL-Airband

Posted: Sun Feb 07, 2016 9:14 pm
by jmaurin
Hi!
I'm trying to compile RTLAirband on CentOS, but I'm getting these errors....any idea? All libs are installed.

Code: Select all

[[email protected] RTLSDR-Airband]# PLATFORM=x86 make
g++ -O3 -g -Wall -DSYSCONFDIR=\"/usr/local/etc\" -march=native   -c -o rtl_airband.o rtl_airband.cpp
rtl_airband.cpp: In function ‘void process_outputs(channel_t*)’:
rtl_airband.cpp:446: error: #pragma GCC diagnostic not allowed inside functions
rtl_airband.cpp:447: warning: comparison between signed and unsigned integer expressions
rtl_airband.cpp:448: error: #pragma GCC diagnostic not allowed inside functions
rtl_airband.cpp: In function ‘int main(int, char**)’:
rtl_airband.cpp:806: error: #pragma GCC diagnostic not allowed inside functions
rtl_airband.cpp:807: warning: deprecated conversion from string constant to ‘char*’
rtl_airband.cpp:809: warning: deprecated conversion from string constant to ‘char*’
rtl_airband.cpp:811: error: #pragma GCC diagnostic not allowed inside functions
make: *** [rtl_airband.o] Error 1
Tks!

Re: Help compiling RTL-Airband

Posted: Mon Feb 08, 2016 11:19 pm
by rtlsdrblog
Upon Googling, it looks like this error only shows up on older versions of GCC, and CentOS uses an older version for some reason. You'll need to update your GCC install somehow to the latest version.

Re: Help compiling RTL-Airband

Posted: Mon Feb 08, 2016 11:40 pm
by jmaurin
rtlsdrblog wrote:Upon Googling, it looks like this error only shows up on older versions of GCC, and CentOS uses an older version for some reason. You'll need to update your GCC install somehow to the latest version.
Or just remove #pragma lines :)
Worked for me. Tks anyway.