Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   how to compile .cpp file (http://www.go4expert.com/forums/compile-cpp-file-t4607/)

dizyn 9Jun2007 16:15

how to compile .cpp file
 
i have .cpp file which has hello world example in it.
i don't know how to compile it from command line
any help please
thanks.

shabbir 9Jun2007 18:54

Re: how to compile .cpp file
 
Which compiler you are trying your hands on?

dizyn 9Jun2007 20:45

Re: how to compile .cpp file
 
gcc

DaWei 9Jun2007 22:32

Re: how to compile .cpp file
 
Code:

#include <iostream>

int main ()
{
    std::cout << "Hello, World" << std::endl;
    return 0;
}

Quote:

Originally Posted by Command Line

E:\Dev-Cpp\progs>g++ helloworld.cpp

E:\Dev-Cpp\progs>a.exe
Hello, World

E:\Dev-Cpp\progs>



All times are GMT +5.5. The time now is 16:34.