Mail Archives: djgpp/1999/10/02/04:13:19
On 1 Oct 99, at 12:59, G.Nwankwo <OGOAMAM AT aol DOT com> wrote:
> I have a source code that I have written with a note pad (on Windows 95) and
> saved as myfile.cxx I tried to compile it but I get the following error:
>
> gxx.exe : myfile.cxx : No such file or directory (ENOENT)
>
> I am new to programming. Am I using the right text editor? Should I save this
> file under any particular directory in DJGPP?
>
> My autoexec.bat file is set as indicated below:
>
> SET BLASTER=A220 I5 D1 T4
> SET CLASSPATH=C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables
> @ECHO OFF
> PROMPT $P$G
> PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DJGPP\BIN;%PATH%
> SET DIRCMD=/O
> SET TEMP=C:\PBTOOLS\WINTEMP
> SET WINPMT=[WINDOWS] $P$G
> SET DJGPP=C:\DJGPP\DJGPP.ENV
>
> Thanks for your help
>
> G.Nwankwo
Why dont you try using gcc.exe instead of using gxx.exe.
Example: gcc myfile.cxx -o myfile.exe
gcc.exe is what I allways use for my both C and C++ programs.
It will detect whether the file needs the C or C++ compiler and will invoke the
appropriate one.
Hope this helps.
Kalum <kalum AT myflat DOT com>
_____________________________________________
Free email with cool domains at FriendlyEmail
http://www.mypad.com/
- Raw text -