1-Jun-00 11:47 you wrote:
Hello ,
I tried downloading full.exe for installation of Cygnus.
ftp://sunsite.auc.dk/pub/cygwin/cygwin-b20/
and then the GPC from
ftp://agnes.dida.physik.uni-essen.de/pub/home/chief/gpc-20000401-i686-pc-cygwin.zip
I tried compiling the pascal programs that came along in windowsNT and run it in unix environment.
It'll not work for sure.
The compilation was fine but it didn't run.
What you expected ? Windows .exe files can not be executed in unix without windows emulators (WINE/WABI/VMWare). Why you think pascal should change something ?
Should i compile them under unix environment,say Linux?
Perhaps. You can create cross-compiling environment though (it theory - on practice you must be familiar with GNU tools, host platform and traget platform while looks like you are not familiar with any of those). On practice the easiest way is to use native compiler.
Can somebody tell me how to run them?
Hmm. WINE, VMWare, etc. Just like any windows .exe ...
COMPILING PROGRAMS THAT USE UNITS :
I am not able to give units directory though i change the setupgpc.bat .It says files not found.
Hmm. I'm not sure WHEN setupgpc.bat must be used: before gpc compilation or after. In unix version unit directory path is hardcoded in executable...
COMPILING PROGRAMS THAT USE WINAPI
The compilation indicates that winapi doesnot exist.
AFAIK it's true: just noone had enough time/goodwill to make it.
LINKING OBJECTS
I tried giving -fautolink as one of the compile parameters but it doenot work. Where do i find the list of compile parameters?I find many in readme.text but i find different ones in setupgpc.bat.
<programname> --help usually works (sometimes there are internal parameters "not for wide use", though). Use --autobuild if you want automatic recompilation of units...
P.S. BTW installation of binaries under Linux is best way to get HUGE headache. Better to recompile gpc from sources if you need it and working version does not come with your distribution.