[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling a c++ file with g++ on the Linux



> 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.

You probably didn't put the current dir in the $PATH. Run it with
./filename, making sure it has execution permission set.

> 2. How can I move files from the linux to the dos?

In linux you have to mount dos as /dos (default), usually you have this
option when installing redhat. Try to cd /dos. Then you just use command
cp for copying files.

> Is there any one to help me?

Sure.