Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help, Pascal

0 views
Skip to first unread message

Temporal

unread,
Mar 20, 1997, 3:00:00 AM3/20/97
to

First of all, does anyone know where I can find an easy to use Pascal
compiler???
A nice editor along with it would also help.

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

Berend de Boer

unread,
Mar 21, 1997, 3:00:00 AM3/21/97
to Temporal

Temporal wrote:

> 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

Daniel P Hudson

unread,
Mar 25, 1997, 3:00:00 AM3/25/97
to

"Temporal" <mac...@compmore.net> wrote:
>First of all, does anyone know where I can find an easy to use Pascal
>compiler??? A nice editor along with it would also help.

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.

Daniel P Hudson

unread,
Mar 25, 1997, 3:00:00 AM3/25/97
to
0 new messages