Hi
I translated a big pc-program (former Turbo-Pascal)
into a gpc-program. I found some problems and have some questions!
-gcc version 2.6.3
-can not make comments with included comments
program test;
begin
{ this is ok! }
(* this also *)
{
(* you get a error*)
}
{
{ also get a error }
}
end.
How dos it work >>EXPORT, IMPORT<<?
MODULE test INTERFACE;
EXPORT Test = (testproc);
PROCEDURE testproc;
END.
MODULE command_line IMPLEMENTATION;
PROCEDURE testproc;
BEGIN
...
END;
END.
PROGRAM testp;
IMPORT Test;
BEGIN
testproc;
END.
>gpc -c test.pas ==>test.o
>gpc test.o testp.pas ==>No exported interface matching `Test'
I found only one way to compile this:
>gpc -include test.pas testp.pas
How do you compile this?
Have you implemented routines to handle the I/O Errors?
(e.g. Turbo Pascal => IOResult );
,~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
| --------,\ |
| Peter Weber / / / |
| IDIAP Martigny Peter(a)IDIAP.CH / / _/ |
| TU Ilmenau Peter.Weber(a)E-Technik.TU-ILMENAU.DE / / |
| _/ _/ |
|----------------------------------------------------------------------|
| http://www.idiap.ch/html/idiap-networks.html |
| http://www.rz.tu-ilmenau.de/~webmast/ |
| http://www.rz.tu-ilmenau.de/~hsf/hsf.html |
`~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'