Compiling in Ubuntu (12.04)

33 views
Skip to first unread message

Vinko Soljan

unread,
Jul 20, 2013, 5:08:30 PM7/20/13
to oaco...@googlegroups.com
Hello!
I am trying to  compilie oaconvert in Ubuntu. I installed all mentioned dependencies (https://github.com/BartVandewoestyne/oaconvert/wiki/Compiling-and-using-oaconvert) and when executing make I get following output:

Scanning dependencies of target airspace
[  4%] Building CXX object src/CMakeFiles/airspace.dir/Airspace.cpp.o
cc1plus: error: unrecognized command line option ‘-std=c++11’
make[2]: *** [src/CMakeFiles/airspace.dir/Airspace.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/airspace.dir/all] Error 2
 
Any help with this would be much appreciated.


Bart Vandewoestyne

unread,
Jul 20, 2013, 5:18:52 PM7/20/13
to oaco...@googlegroups.com
On 07/20/2013 11:08 PM, Vinko Soljan wrote:
> Hello!
> I am trying to compilie oaconvert in Ubuntu. I installed all mentioned
> dependencies
> (https://github.com/BartVandewoestyne/oaconvert/wiki/Compiling-and-using-oaconvert)
> and when executing make I get following output:
>
> Scanning dependencies of target airspace
> [ 4%] Building CXX object src/CMakeFiles/airspace.dir/Airspace.cpp.o
> cc1plus: error: unrecognized command line option �-std=c++11�
> make[2]: *** [src/CMakeFiles/airspace.dir/Airspace.cpp.o] Error 1
> make[1]: *** [src/CMakeFiles/airspace.dir/all] Error 2
>
> Any help with this would be much appreciated.

It looks like your C++ compiler doesn't know the -std=c++11 option to
compile C++11 compliant code. Can you check what C++ compiler you are
using? Does the command

cc1plus -v

or

cc1plus --version

or something like that tell you your compiler name and version?

I'm using g++ 4.7.3 and this works fine:

mc303@maverick:~$ g++ --version | head -1
g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3

Can you check if you have this compiler installed? What does the output of

dpkg --list | grep g++

give you?

Kind regards,
Bart

Vinko Soljan

unread,
Jul 21, 2013, 10:23:09 AM7/21/13
to oaco...@googlegroups.com
Ii seems my g++ compiler was 4.6 which was not C++11 compliant. I just installed g++ 4.7.3 and compiled successfully.
Thank you for your help.

Best regards,
Vinko

bort...@gmail.com

unread,
Jul 17, 2015, 5:09:22 AM7/17/15
to oaco...@googlegroups.com
Hi

On which ubuntu could you succesfully compile it ?
Reply all
Reply to author
Forward
0 new messages