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. The compilation was fine but it didn't run. Should i compile them under unix environment,say Linux? Can somebody tell me how to run them?
COMPILING PROGRAMS THAT USE UNITS :
I am not able to give units directory though i change the setupgpc.bat .It says files not found.
COMPILING PROGRAMS THAT USE WINAPI
The compilation indicates that winapi doesnot exist.
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.
Thanks in advance . Regards, Anuradha
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.
Khimenko Victor wrote:
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...
What about --unit-path? Related options are: --unit-destination-path, --object-path, --object-destination-path.
Hope this helps
On 2 Jun 00, at 22:48, Khimenko Victor wrote:
[...]
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...
The batch file simply sets up some environment variables, of which the main one is the 'PATH'. It has nothing to do with using UNITs.
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.
Not true. I have been working on it for quite a while, and have even requested help on this list (no takers, though). I have functional Messages, Wintypes, and Winprocs units, and include precompiled versions in my Cygwin and Mingw distributions. I'll gladly send the sources to anyone who wishes to help with the work. In any case, when GPC 2.1 is released, I will put the sources on agnes ...
Best regards, The Chief -------- Dr. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro v5.22.1 for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com