views:

210

answers:

1

When I run a C++ program in Netbeans on a Mac that has cout or printf statements the output is displayed in a terminal opened using X11. Is there a console built into Netbeans? If yes, how do I change the output to it?

Thanks, Spencer

+2  A: 

Under Project Properties -> Run -> Console Type you can choose "Output Window" instead of External Terminal.

Mr Shunz
Get error:dyld: could not load inserted library: /Applications/NetBeans/NetBeans 6.8.app/Contents/Resources/NetBeans/dlight2/bin/nativeexecution/MacOSX-x86/unbuffer.dylibRUN FAILED (exit value 133, total time: 268ms)Missing something?
Spencer
Solution!http://netbeans.org/projects/cnd/lists/issues/archive/2010-01/message/5First, rename unused folder"Contents/Resources/NetBeans/dlight2/bin/nativeexecution/MacOSX-x86" to"Contents/Resources/NetBeans/dlight2/bin/nativeexecution/MacOSX-x86_" or so..Second, rename folder"Contents/Resources/NetBeans/dlight2/bin/nativeexecution/MacOSX-x86_64"to"Contents/Resources/NetBeans/dlight2/bin/nativeexecution/MacOSX-x86".
Spencer