gr-osmosdr and the compile flag -std=gnu++11

Cinaed Simson cinaed.simson at gmail.com
Mon Oct 30 22:36:28 UTC 2017


Hi - I presume since I'm receiving a number of these types of errors
while compiling

 /opt/gnuradio/src/gr-oot/gr-osmosdr/lib/rtl_tcp/rtl_tcp_source_c.cc:307:7: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
   cmd = { 0x0a, htonl(offset_tune) };

i.e., complaining about -std=gnu++11, that I should probably be
compiling gr-osmosdr with the -std=gnu++11 flag.

Typically, I fall asleep at the wheel during the build - so I don't know
which version these warning started. If it wasn't for my dog's wet nose
pressing against my elbow, I'd still be sleeping.

I'm using the following git pulls for

  rtl-sdr:
    commit 18bf26989c926a5db4fca29e7d859af42af1437c
    Author: hayati ayguen <h_ayguen at web.de>
    Date:   Sun Jun 11 00:18:53 2017 +0200

  gr-osmosdr:
    commit c653754dde5e2cf682965e939cc016fbddbd45e4
    Merge: b7aab45 cf95494
    Author: Dimitri Stolnikov <horiz0n at gmx.net>
    Date:   Mon Jun 12 00:04:36 2017 +0200

and I have somewhat recent git pulls for libosmocore and libosmo-dsp.

Should I be compiling the programs rtl-sdr and gr-osmosdr with
-std=gnu++11?

How about libosmocore and libosmo-dsp?

-- Cinaed




More information about the osmocom-sdr mailing list