Thanks for answering, I already have quite new version of the compiler taken from the net. I noticed that if I try to compile my unit file test1.pas I get a warning:
c:\gpc\lib/crt0.o(.data+0xc2):crt0.s: undefined reference to 'main' c:\gpc\lib/libc.a(crt1.o)(.text+0x446):crt1.c: undefined reference to 'main'
and a .gpi file is created. When I compile a program using test1 the following error occures:
c:/gpc/tmp\cceaaaaa(.text+0xad):test.pas: undefined reference to 'First'
where First is an identifier of a function from test1. But if i compile my program with --automake switch everything goes all right. Do I always have to turn on the build mode ?
-------------------------------------- Adam Naumowicz email: adamn@math.uwb.edu.pl WWW : http://math.uwb.edu.pl/~adamn/ ---------------------------------------