Thread: CMake problem
View Single Post
  #2   (View Single Post)  
Old 20th January 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

The first error message indicates you are not using the correct compiler.
Quote:
cc1plus: error: unrecognized command line option "-std=c++11"
From memory, I recall that the port/package lang/g++ is c++11 compliant at 4.8 or above.

This description happens to be from -current:
Code:
$ pkg_info g++
Information for http://mirrors.gigenet.com/pub/OpenBSD/snapshots/packages/i386/g++-4.8.4.tgz

Comment:
GNU compiler collection: C++ compiler

Description:
The GNU Compiler Collection (GCC) includes front ends for C, C++,
Objective-C, Fortran, Java, and Ada, as well as libraries for these
languages (libstdc++, libgcj,...).

GCC development is a part of the GNU Project and uses an open
development environment. Its supports many other platforms in order to
foster a world-class optimizing compiler, to attract a larger team of
developers, to ensure that GCC and the GNU system work on multiple
architectures and diverse environments, and to more thoroughly test and
extend the features of GCC.

This package contains the C++ compiler.

Maintainer: Pascal Stumpf <redacted>

WWW: http://gcc.gnu.org/


Information for http://mirrors.gigenet.com/pub/OpenBSD/snapshots/packages/i386/g++-4.9.2p0.tgz

Comment:
GNU compiler collection: C++ compiler

Description:
The GNU Compiler Collection (GCC) includes front ends for C, C++,
Objective-C, Fortran, Java, and Ada, as well as libraries for these
languages (libstdc++, libgcj,...).

GCC development is a part of the GNU Project and uses an open
development environment. Its supports many other platforms in order to
foster a world-class optimizing compiler, to attract a larger team of
developers, to ensure that GCC and the GNU system work on multiple
architectures and diverse environments, and to more thoroughly test and
extend the features of GCC.

This package contains the C++ compiler.

Maintainer: Pascal Stumpf <redacted>

WWW: http://gcc.gnu.org/

$ pkg_info -L g++
Information for http://mirrors.gigenet.com/pub/OpenBSD/snapshots/packages/i386/g++-4.8.4.tgz

Files:
/usr/local/bin/ec++
/usr/local/bin/eg++
/usr/local/bin/i386-unknown-openbsd5.7-ec++
/usr/local/bin/i386-unknown-openbsd5.7-eg++
/usr/local/include/c++/4.8.4/algorithm
/usr/local/include/c++/4.8.4/array
/usr/local/include/c++/4.8.4/atomic
.
.
.

Last edited by jggimi; 20th January 2015 at 06:09 PM. Reason: redacted $MAINTAINER Email
Reply With Quote