[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling a c++ file with g++ on the Linux
On Sat, 08 Nov 1997 18:48:09 +0200, Ayala Bloch wrote:
> Hello,
> I have installed the red hat Linux on my Pc and I have two questions:
>
> 1. Somehow I can't compile there c++ programs. I try to use g++. It
> doesn't give me any error statements and it does create the right files
> but when I try to run them nothing happens.
Here is what I did:
bash-2.00$ less test/hello.cc
#include <iostream.h>
int main(void)
{
cout<<"Hello world\n";
return 0;
}
bash-2.00$ g++ -Wall -o test/hello test/hello.cc
bash-2.00$ ./test/hello
Hello world
bash-2.00$
>
> 2. How can I move files from the linux to the dos?
>
use the cp or mv commnads to where you mount your dos file system.
> Is there any one to help me?
> Thanks a lot,
>
> Ayala
>
Perhaps you will give us more details ?