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

Thread: C++ on Linux

  1. #1

    C++ on Linux

    I am learning C++ with Perl and I want to know how to compile C++ programs with g++... Can someone help me out?

  2. #2

    Re:C++ on Linux

    try

    Code:
    man g++

  3. #3

    Re:C++ on Linux

    it isn't there:

    no manual entry for g++


  4. #4

    Re:C++ on Linux

    That is strange.

    Well, this is the online manual for g++

    http://amath.colorado.edu/computing/...e/man/g++.html

  5. #5

    Re:C++ on Linux

    [quote author=trickster link=board=9;threadid=8663;start=0#msg78220 date=1076188549]
    That is strange.

    Well, this is the online manual for g++

    http://amath.colorado.edu/computing/...e/man/g++.html
    [/quote]

    see the thing is i did install the development part of 'Drake 9.2 and GCC works but g++ doesn't work..

  6. #6

    Re:C++ on Linux

    Go to http://gcc.gnu.org/releases.html and download the latest version.

  7. #7

    Re:C++ on Linux

    [quote author=chessforce link=board=9;threadid=8663;start=0#msg78533 date=1076813761]
    Go to http://gcc.gnu.org/releases.html and download the latest version.
    [/quote]

    eeee compiling gcc/g++ isn't always an easy task. I'd say reinstall g++ if it's not working. How'd you test it?

    g++ a.cpp -o a
    ./a
    ?

  8. #8

    Re:C++ on Linux

    [quote author=gorn link=board=9;threadid=8663;start=0#msg78543 date=1076825721]
    [quote author=chessforce link=board=9;threadid=8663;start=0#msg78533 date=1076813761]
    Go to http://gcc.gnu.org/releases.html and download the latest version.
    [/quote]

    eeee compiling gcc/g++ isn't always an easy task. I'd say reinstall g++ if it's not working. How'd you test it?

    g++ a.cpp -o a
    ./a
    ?
    [/quote]

    How else would you test it? ???

    Also, you can try a pre-compiled version, if compiling becomes too hard (I have never compiled it for Linux, so I do not know the best choice).

  9. #9

    Re:C++ on Linux

    Recompiling your compiler using itself, sounds a wee bit recursive? Maybe not, but, at the very least it makes my noggin hurt.

  10. #10

    Re:C++ on Linux

    [quote author=countach44 link=board=9;threadid=8663;start=0#msg78583 date=1076903805]
    Recompiling your compiler using itself, sounds a wee bit recursive? Maybe not, but, at the very least it makes my noggin hurt.
    [/quote]

    Yeah you need gcc to compile gcc.
    Chicken and egg? No, c compilers can be written in asm and then use that to compile gcc. Assembelers can be written in machine code.

    Now days if you make a new processor you cross compile the compiler, no need to write machine code of an assembler first.


    @chessforce
    for how else he would test it I don't know, possibily wrong (use gcc not g++) that's why I posted that.

Similar Threads

  1. Linux security is a 'myth', claims Microsoft
    By genesis in forum Windows - General Topics
    Replies: 4
    Last Post: 01-30-2005, 11:51 PM
  2. Linux Benchmarking
    By comtux in forum Linux - General Topics
    Replies: 2
    Last Post: 01-08-2005, 01:17 AM
  3. Microsoft Will Offer Linux Software (2004)
    By coltrane in forum General Chat
    Replies: 8
    Last Post: 12-11-2002, 06:03 PM
  4. I've made a new improved distro: Linux XP !!
    By NGene in forum General Chat
    Replies: 34
    Last Post: 01-09-2002, 05:03 PM

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
  •