try
Code:man g++
I am learning C++ with Perl and I want to know how to compile C++ programs with g++... Can someone help me out?
That is strange.
Well, this is the online manual for g++
http://amath.colorado.edu/computing/...e/man/g++.html
[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..
Go to http://gcc.gnu.org/releases.html and download the latest version.
[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 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).
Recompiling your compiler using itself, sounds a wee bit recursive? Maybe not, but, at the very least it makes my noggin hurt.
[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.
Bookmarks