Mail Archives: djgpp/1999/07/11/12:20:26
From: | guille AT iies DOT XXes (Guillermo Rodriguez Garcia)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Now I'm REally confused...
|
Date: | Sun, 11 Jul 1999 15:17:27 GMT
|
Organization: | Telefonica Transmision de Datos
|
Lines: | 31
|
Message-ID: | <3783e8f8.2171896@noticias.iies.es>
|
References: | <7m0c07$n1b$1 AT nnrp1 DOT deja DOT com>
|
NNTP-Posting-Host: | iies232.iies.es
|
Mime-Version: | 1.0
|
X-Newsreader: | Forte Agent 1.5/32.451
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
El día Wed, 07 Jul 1999 20:06:41 GMT, kormt_sereg AT my-deja DOT com
escribió:
>OK, so I can write the source code on a simple text editor like notepad.
>I did the code for hello.cpp and named it just that.
If you use notepad, when saving, enclose the file name in quotes so
that notepad doesn't automatically append the .txt suffix.
> Now to turn it into
>an .obj I right click on gxx.exe and goto the command line and put
What? right click? where? why?
>gcc -c -Wall hello.cpp or so it says in readme1st. I did this and it
>didn't work. And I thought I was so close. :(
You don't have to right click anywhere, just open a DOS box, go to the
dir where you have hello.cpp and type
gcc -Wall -c hello.cpp
If everything is right (i.e.: gcc is in your path, the DJGPP
environment variable has been set up correctly, etc.) you should now
have an object file named hello.o
Regards
G
----
Guillermo Rodriguez Garcia
guille AT iies DOT XXes (remove the XX)
- Raw text -