Results 1 to 4 of 4

Thread: gcc error on "cclplus"

  1. #1
    Join Date
    Apr 2009
    Location
    Calcutta, India
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    gcc error on "cclplus"

    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

  2. #2
    Join Date
    Dec 2008
    Location
    Idaho
    Beans
    131
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: gcc error on "cclplus"

    Uh, call me stupid, but I don't see the file you were talking about...

    Make sure it's installed:

    Code:
    sudo apt-get install build-essential

  3. #3
    Join Date
    Apr 2009
    Location
    Calcutta, India
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: gcc error on "cclplus"

    Thanks,

    That worked.

  4. #4
    Join Date
    Jan 2012
    Beans
    1

    Thumbs down Re: gcc error on "cclplus"

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •