LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   g++ (https://www.linuxquestions.org/questions/programming-9/g-64794/)

zetsui 06-10-2003 12:14 PM

g++
 
hey guys i bought a very recent book on ASCII C++, because its multi-platformed, my first few source files were compiling nicely in the command line, but whenever i try to compile them again or any other source file no result comes up :( I restarted my computer, yet still no change, know whats wrong?

Mara 06-10-2003 12:22 PM

Could you copy the output? Try to compile anything and post the result.

zetsui 06-10-2003 12:44 PM

#root: g++ Day0101.cpp
#root:

there is no output i have no idea what happend, i am using mandrake 9.1

Looking_Lost 06-10-2003 01:25 PM

Is there a file called a.out in the directory now?

zetsui 06-10-2003 02:14 PM

yes :) even when i delete it and try to compile again nothing happens, but continue

Looking_Lost 06-10-2003 02:34 PM

a.out will be the compiled program

You've got to give the compiler a different name to output to or it will always be a.out:


g++ myprogram.cpp -o name_for_my_compiled_program


All times are GMT -5. The time now is 06:50 PM.