Right now I downloaded a Pascal compiler from the deloris website
(gpc112b.zip), along with djdev201.zip, bnu27b.zip, csdpmi3b.zip. I'm
pretty sure I did every thing right including making a bat file with this
instead of messing with the config.sys file.
echo off
set DJGPP=C:\DJGPP\DJGPP.ENV
PATH C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS
cd\djgpp
Anyway, I tried compiling a simple program.
program first 'output';
begin
writeln('Hello');
end.
But I got these error messages :
gpc.exe : new.exe : No such file or directory (ENOENT)
new.pas : 1 : parse error before character constant
If anyone knows what's wrong, Please e-mail me.
mac...@compmore.net
> Anyway, I tried compiling a simple program.
>
> program first 'output';
> begin
> writeln('Hello');
> end.
Also try to make it correct:
program first(output);
begin
writeln('Hello');
end.
compile with gpc new.pas -o new
--
Groetjes,
Berend. (-:
email: ber...@pobox.com
compuserve: 100120,3121
The phrase "Easy to use Compiler" is an oxymoron. They all require
you know command line switches.
>Right now I downloaded a Pascal compiler from the deloris website
>(gpc112b.zip), along with djdev201.zip, bnu27b.zip, csdpmi3b.zip. I'm
Get gpc20b.zip, it fixed some bugs and other odities of 112,
and rhide makes an OK editor/IDE for you.
>pretty sure I did every thing right including making a bat file with this
>instead of messing with the config.sys file.
You shouldn't be setting these in CONFIG.SYS.
>echo off
>set DJGPP=C:\DJGPP\DJGPP.ENV
>PATH C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS
>cd\djgpp
That should be all you need, as long as you unzipped
the archive using pkunzip -d -o archive.zip,
otherwise, delete all the files and try it again.
If you set PATH in your config.suys file, you can not alter it
with this statement, you must move it to AUTOEXEC.BAT and then
this statement will do what you want, or add the path to the
CONFIG.SYS line and don't worry about setting it in the batch file.
In any event this discussion belongs in comp.os.msdos.djgpp.