Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Eclipse for C/C++ ?

  1. #1
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Eclipse for C/C++ ?

    Hi,

    OpenSUSE 13.1, KDE

    I installed Eclipse from home:marec2000

    Everything is OK, except that this version of Eclipse is a Java IDE (Eclipse SDK), and I need a C/C++ version of Eclipse IDE.

    Please advise, thank you.
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  2. #2
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Eclipse for C/C++ ?

    riderplus wrote:
    >
    > Hi,
    >
    > OpenSUSE 13.1, KDE
    >
    > I installed Eclipse from home:marec2000
    >
    > Everything is OK, except that this version of Eclipse is a Java IDE
    > (Eclipse SDK), and I need a C/C++ version of Eclipse IDE.
    >
    > Please advise, thank you.
    >
    >


    Inside Eclipse
    Help ==>Eclipse Market place ==> Search "Eclipse CDT" ==> Install ==>
    Restart Eclipse and you should be all set

    --
    GNOME 3.10.2
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop

  3. #3
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: Eclipse for C/C++ ?

    Quote Originally Posted by vazhavandan View Post
    riderplus wrote:
    >
    > Hi,
    >
    > OpenSUSE 13.1, KDE
    >
    > I installed Eclipse from home:marec2000
    >
    > Everything is OK, except that this version of Eclipse is a Java IDE
    > (Eclipse SDK), and I need a C/C++ version of Eclipse IDE.
    >
    > Please advise, thank you.
    >
    >


    Inside Eclipse
    Help ==>Eclipse Market place ==> Search "Eclipse CDT" ==> Install ==>
    Restart Eclipse and you should be all set

    --
    GNOME 3.10.2
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop

    Brilliant, I will try that!!!
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  4. #4
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: Eclipse for C/C++ ?

    So I installed it...now I get this error message when trying to compile the Hello World program:

    Code:
    Description	                        Resource	                 Path   	Program "g++" not found in PATH	Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings] options	C/C++ Scanner Discovery Problem
    /bin/sh: g++: command not found	helloworld		 	C/C++ Problem
    make: *** [src/helloworld.o] Error 127	helloworld		 	C/C++ Problem
    Why? I have installed gcc!
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  5. #5
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Eclipse for C/C++ ?

    riderplus wrote:
    >
    > So I installed it...now I get this error message when trying to compile
    > the Hello World program:
    >
    >
    > Code:
    > --------------------
    > Description Resource Path Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem
    > /bin/sh: g++: command not found helloworld C/C++ Problem
    > make: *** [src/helloworld.o] Error 127 helloworld C/C++ Problem
    >
    > --------------------
    >
    >
    > Why? I have installed gcc!
    >
    >

    Try installing gcc-c++

    Code:
    sudo zypper in gcc-c++
    --
    GNOME 3.10.2
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop

  6. #6
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: Eclipse for C/C++ ?

    Quote Originally Posted by vazhavandan View Post
    riderplus wrote:
    >
    > So I installed it...now I get this error message when trying to compile
    > the Hello World program:
    >
    >
    > Code:
    > --------------------
    > Description Resource Path Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem
    > /bin/sh: g++: command not found helloworld C/C++ Problem
    > make: *** [src/helloworld.o] Error 127 helloworld C/C++ Problem
    >
    > --------------------
    >
    >
    > Why? I have installed gcc!
    >
    >

    Try installing gcc-c++

    Code:
    sudo zypper in gcc-c++
    --
    GNOME 3.10.2
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop
    Thank you, I installed it. Now I get only two errors:

    Code:
    /bin/sh: g++:  command not found
    make:*** [src/helloworld.o] Error 127
    Any way out of this?
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  7. #7
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Eclipse for C/C++ ?

    riderplus wrote:
    >
    > vazhavandan;2638142 Wrote:
    >> riderplus wrote:
    >>>
    >>> So I installed it...now I get this error message when trying to

    >> compile
    >>> the Hello World program:
    >>>
    >>>
    >>> Code:
    >>> --------------------
    >>> Description Resource

    >> Path Program "g++" not found in PATH Preferences,
    >> C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings]
    >> options C/C++ Scanner Discovery Problem
    >>> /bin/sh: g++: command not found helloworld C/C++

    >> Problem
    >>> make: *** [src/helloworld.o] Error 127 helloworld

    >> C/C++ Problem
    >>>
    >>> --------------------
    >>>
    >>>
    >>> Why? I have installed gcc!
    >>>
    >>>

    >> Try installing gcc-c++
    >>
    >>>

    > Code:
    > --------------------
    > > > sudo zypper in gcc-c++

    > --------------------
    >>>

    >>
    >> --
    >> GNOME 3.10.2
    >> openSUSE 13.1 (Bottle) (x86_64) 64-bit
    >> Kernel Linux 3.11.6-4-desktop

    >
    > Thank you, I installed it. Now I get only two errors:
    >
    >
    > Code:
    > --------------------
    >
    > /bin/sh: g++: command not found
    > make:*** [src/helloworld.o] Error 127
    >
    > --------------------
    >
    >
    > Any way out of this?
    >
    >

    You may need to install development pattern as suggested here

    http://forums.opensuse.org/showthrea...44#post2271044

    --
    GNOME 3.10.2
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop

  8. #8
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: Eclipse for C/C++ ?

    Quote Originally Posted by vazhavandan View Post
    riderplus wrote:
    >
    > vazhavandan;2638142 Wrote:
    >> riderplus wrote:
    >>>
    >>> So I installed it...now I get this error message when trying to

    >> compile
    >>> the Hello World program:
    >>>
    >>>
    >>> Code:
    >>> --------------------
    >>> Description Resource

    >> Path Program "g++" not found in PATH Preferences,
    >> C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings]
    >> options C/C++ Scanner Discovery Problem
    >>> /bin/sh: g++: command not found helloworld C/C++

    >> Problem
    >>> make: *** [src/helloworld.o] Error 127 helloworld

    >> C/C++ Problem
    >>>
    >>> --------------------
    >>>
    >>>
    >>> Why? I have installed gcc!
    >>>
    >>>

    >> Try installing gcc-c++
    >>
    >>>

    > Code:
    > --------------------
    > > > sudo zypper in gcc-c++

    > --------------------
    >>>

    >>
    >> --
    >> GNOME 3.10.2
    >> openSUSE 13.1 (Bottle) (x86_64) 64-bit
    >> Kernel Linux 3.11.6-4-desktop

    >
    > Thank you, I installed it. Now I get only two errors:
    >
    >
    > Code:
    > --------------------
    >
    > /bin/sh: g++: command not found
    > make:*** [src/helloworld.o] Error 127
    >
    > --------------------
    >
    >
    > Any way out of this?
    >
    >

    You may need to install development pattern as suggested here

    http://forums.opensuse.org/showthrea...44#post2271044

    --
    GNOME 3.10.2
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop

    I did that, it doesn't work. Still get that error.
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  9. #9

    Default Re: Eclipse for C/C++ ?

    Quote Originally Posted by riderplus View Post
    I did that, it doesn't work. Still get that error.
    What output do you get when you run "g++" in a terminal window?

    /usr/bin/g++ is part of the package "gcc-g++" which you already was advised to install and apparently did install, so g++ should be found.

  10. #10
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: Eclipse for C/C++ ?

    Quote Originally Posted by wolfi323 View Post
    What output do you get when you run "g++" in a terminal window?

    /usr/bin/g++ is part of the package "gcc-g++" which you already was advised to install and apparently did install, so g++ should be found.
    Here:
    Code:
    linuxnohost:~$ g++
    g++: fatal error: no input files
    compilation terminated.
    So everything seems to be fine, except for the two errors I told you about. Why does eclipse fail to compile that Hello World program?
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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