discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More on C++11 requirements


From: Marcus D. Leech
Subject: More on C++11 requirements
Date: Sun, 24 Nov 2019 17:21:40 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Playing with a project (gr-radio_astro from WVURAIL: https://github.com/WVURAIL/gr-radio_astro), and running into compile issues on
   older OS (Fedora 20 in this case).

Now, the interesting thing is that my GCC appears to have support for c++11 (since -std=c++11 works as a command arg), and despite the
  fact that the CMakelists.txt file for the project includes:

########################################################################
# Compiler specific setup
########################################################################
if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32)
    #http://gcc.gnu.org/wiki/Visibility
    add_definitions(-fvisibility=hidden)
    set(CMAKE_CXX_STANDARD 11)
endif()

There doesn't appear to be any use of -std=c++11 in the Make files generated, and one gets compile errors for source that includes
  C++11 features/syntax.

Are there extra "sets" in the CMakeLists.txt that I should be using to force it to use the c++11 compiler options?

Cheers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]