Hello, sorry if this is a trivial question.
 
    I´m trying to compile the folloing program:
 
 
program DateTimeDemo;
 
uses DOS, CRT ;
 
var
 ano, mes, dia, numdia : word;
 
begin
 GetDate(ano, mes, dia, numdia);
 WriteLn('Current date is: ' + ano));
 readkey;
end.
 
and gpc cannot find CRT and DOS, but these units are present. The output of compilations this:
 
C:\DJGPP\src>gpc dosuntes.pas --unit-path="c:\djgpp\lib\gcc-lib\djgpp\2.953\unit
s"  -v
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.953/specs
gpc version 20010623, based on 2.95.3 20010315/djgpp (release)
 c:/djgpp/lib/gcc-lib/djgpp/2.953/gpcpp.exe -lang-pascal -v -famtmpfile=c:/djgpp
/tmp\ccaaaaaa -funit-path=c:\djgpp\lib\gcc-lib\djgpp\2.953\units -fdelphi-commen
ts -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_
MINOR__=0 -D__GPC_RELEASE__=20010623 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE
_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -
D__OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_
DOS__=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem
(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386
-D__i386__ -D__tune_pentium__ -imacros c:/djgpp/lib/djgpp.ver -remap dosuntes.pa
s c:/djgpp/tmp\cccaaaaa
GNU Pascal Compiler PreProcessor version 20010623, based on gcc-2.95.3 20010315/
djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/lang/pascal
 c:/djgpp/include
 /usr/local/include
 c:/djgpp/i586-pc-msdosdjgpp/include
 c:/djgpp/lib/gcc-lib/djgpp/2.953/include
 c:/djgpp/include
End of search list.
 c:/djgpp/lib/gcc-lib/djgpp/2.953/gpc1.exe c:/djgpp/tmp\cccaaaaa -quiet -dumpbas
e dosuntes.pas -version -famtmpfile=c:/djgpp/tmp\ccaaaaaa -funit-path=c:\djgpp\l
ib\gcc-lib\djgpp\2.953\units -o c:/djgpp/tmp\ccdaaaaa
GNU Pascal version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C ver
sion 2.95.3 20010315/djgpp (release).
GNU Pascal version is actually 20010623, based on gcc-2.95.3 20010315/djgpp (rel
ease)
dosuntes.pas:34: module/unit interface `Dos' could not be imported
 
How can I get it working?
 
Thank you in advance
 
Miguel Pérez E
Development Engineer
Primestone
E-Mail: miguel.perez@primestone.com
Tel:      (571) 6265432
Fax:     (571) 6156377