Help compiling RTL-Airband

Need help installing or figuring out something about your SDR? Ask here.
Post Reply
jmaurin
Posts: 10
Joined: Mon May 04, 2015 2:41 pm

Help compiling RTL-Airband

Post by jmaurin » Sun Feb 07, 2016 9:14 pm

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!

rtlsdrblog
Site Admin
Posts: 2677
Joined: Mon Nov 19, 2012 11:54 pm

Re: Help compiling RTL-Airband

Post by rtlsdrblog » Mon Feb 08, 2016 11:19 pm

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.

jmaurin
Posts: 10
Joined: Mon May 04, 2015 2:41 pm

Re: Help compiling RTL-Airband

Post by jmaurin » Mon Feb 08, 2016 11:40 pm

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.

Post Reply