[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling a c++ file with g++ on the Linux
Since you pollute the list anyway (I answered by direct email but I can't
resist this): a) Someone suggested to compile in test/tell. Bad idea. If
you compile to object later in that way then you will have object files in
your working (current) directory. Always cd to the directory where you
build something before you launch gcc, cc etc, unless it's a part of a
large source tree, in which case a Makefile takes care of that. b) Do not
generate ANY directories in the root directory. Under Linux (and BSD and
god knows what else), make a mount directory under /mnt or /usr/mnt or
/usr/local/mnt. This has got to do with permissions which are not obvious
at this time. Simply make a link from your home directory (soft) to the
mount point. c) If you decide to blubber on off topic in this list,
expect an encounter with a SCSI cable... d) Yair: We talked about UDMA:
search the linux-il site (list archive) for UDMA. Also the web, there is a
good FAQ I have pointed out earlier.
On Mon, 10 Nov 1997, yairlib wrote:
> > 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.
>
>
>
Peter Lorand Peres
------------------
plp@actcom.co.il 100310.2360 on CIS (please use Internet address for mail)
http://ourworld.compuserve.com/homepages/plp
"The creed of Inland Revenue is simple: 'If we can bring one little smile to one
little face today - then somebody's screwed up somewhere' - David Frost
(Note: The above stands valid in all countries until proven wrong)