PDA

View Full Version : [SOLVED] gcc error on "cclplus"



indrajit_1
March 10th, 2011, 06:02 AM
All,

I wrote a small C++ program on my newly installed Ubuntu to test gcc on it. I named the file test.cpp.

Now through the gcc seems to be able to compile a basic C program correctly, for the above file the result it gives is:

"gcc:exec: cannot find cclplus. no such file or directory"

or something which is very close (I am writing from Windows since the Internet connection is only available for me here.)

Help appreciated.
Indrajit

nickleboyblue
March 10th, 2011, 06:42 AM
Uh, call me stupid, but I don't see the file you were talking about...

Make sure it's installed:


sudo apt-get install build-essential

indrajit_1
April 9th, 2011, 04:12 AM
Thanks,

That worked.

J.M.Ward
January 11th, 2012, 05:33 PM
I would like to thank both indrajit_1 (for asking the question) and nickleboyblue (for answering it so succinctly).

I was having a hard time trying to get Netbeans to build and run a simple C++ program, and getting the error message mentioned by indrajit_1. Netbeans put gcc in the C++ compiler tool box, and while I wondered about this, I just assumed gcc could do C and C++. Then I Googled the problem, found this thread, ran nickleboyblue's one-liner, and did a rescan in Netbeans, which found g++. It worked immediately!

Many thanks to you both, guys; I hope you see this - you have saved me hours of head-scratching!

Best wishes,
JMW :D:D:D