On 9/29/2011 10:03 PM, Albretch Mueller wrote:
On 9/29/11, Eric Noulard<[email protected]>  wrote:

gcc is a C compiler not a C++ compiler.

Do you have 'g++" installed?

What does

g++ --version says?

$ g++ --version
bash: g++: command not found

  but I definitely have a c++ compiler installed

$ which cpp
/usr/bin/cpp

$ cpp --version
cpp (Debian 4.3.4-6) 4.3.4
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ ls -l /usr/bin/cpp
lrwxrwxrwx 1 root root 7 Nov  5  2009 /usr/bin/cpp ->  cpp-4.3

$ ls -l /usr/bin/cpp-4.3
-rwxr-xr-x 1 root root 214024 Nov  2  2009 /usr/bin/cpp-4.3

  so what should I do?

cpp is not a C++ compiler. It is a "C" preprocessor (cpp). You need to install g++ on your system if you want to compile c++ code.

-Bill

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to