Running Netbeans for C++ on Mac OS X 10.7

  • From: "TomP" < >
  • To:
  • Subject: Running Netbeans for C++ on Mac OS X 10.7
  • Date: Mon, 20 Feb 2012 01:42:42 +0000

Hey there,

I've been trying to run Netbeans for C++ for hours, but it seems that there 
is a problem with finding the compiler.

I can create projects and everything, but when I build I get the following 
error message:

"/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= 
.build-conf
"/Developer/usr/bin/make"  -f nbproject/Makefile-Debug.mk 
dist/Debug/GNU-MacOSX/welcome_1
mkdir -p build/Debug/GNU-MacOSX
rm -f build/Debug/GNU-MacOSX/welcome.o.d
g++    -c -g -MMD -MP -MF build/Debug/GNU-MacOSX/welcome.o.d -o 
build/Debug/GNU-MacOSX/welcome.o welcome.cc
welcome.cc:31:20: warning: iostream: No such file or directory
welcome.cc: In function 'int main(int, char**)':
welcome.cc:35: error: 'cout' is not a member of 'std'
welcome.cc:35: error: 'endl' is not a member of 'std'
welcome.cc:39: error: 'cout' is not a member of 'std'
welcome.cc:39: error: 'endl' is not a member of 'std'
welcome.cc:39: error: 'endl' is not a member of 'std'
welcome.cc:41: error: 'cout' is not a member of 'std'
welcome.cc:41: error: 'endl' is not a member of 'std'
make[2]: *** [build/Debug/GNU-MacOSX/welcome.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 271ms)

I installed XCode 4.3, and programming in C++ using XCode works correctly; so 
the compilers must be somewhere. But I cannot get things together. Attached, 
you'll find a screenshot of my options.

X11 is installed, too.
(The netbeans website doesn't help at all, unfortunately.)

Any ideas?

Thanks a lot, TomP




Attachments: 
http://forums.netbeans.org//files/netbeans1_794.jpg



Running Netbeans for C++ on Mac OS X 10.7

TomP 02/20/2012

Running Netbeans for C++ on Mac OS X 10.7

groovyNerd 02/27/2012

Running Netbeans for C++ on Mac OS X 10.7

groovyNerd 02/27/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close