To Whom It May Concern,
I tried to locate any FAQ/manual information about the error I get but did not find any information. I installed MinGW and GNU Pascal on a windows machine and I can compile a program into an object file but I cannot go any further. When using gpcc the linker (ld.exe) fails with the following error:
========================== c:\MinGW\bin\gpcc test.p GPCC (Win32 (Mingw) build), v2.18: BP-compatibility shell for GNU Pascal. (c) 11th May 2002, Prof. A Olowofoyeku (The African Chief).
Compiling PROGRAM "test.p" ... CFG file = c:\mingw\bin\gpcc.cfg Args = [gpc --automake -s --no-typed-address --extended-syntax --ignore-function-results --no-io-checking --no-stack-checking -O2 -march=i486 -mcpu=i486 -O2 -mcpu=i686 --executable-file-name test.p]
\mingw\lib\gcc-lib\mingw32\2.95.3-6........\mingw32\bin\ld.exe: cannot find -lgcc ==========================
I tried to point at the local copy of ld.exe and this error occured:
========================== c:\MinGW\bin\gpcc test.p --L \mingw\bin\ld.exe GPCC (Win32 (Mingw) build), v2.18: BP-compatibility shell for GNU Pascal. (c) 11th May 2002, Prof. A Olowofoyeku (The African Chief).
Compiling PROGRAM "test.p" ... CFG file = c:\mingw\bin\gpcc.cfg Args = [gpc --automake -s --no-typed-address --extended-syntax --ignore-function-results --no-io-checking --no-stack-checking -O2 -march=i486 -mcpu=i486 -O2 -mcpu=i686 \mingw\mingw32\bin\ld.exe --executable-file-name test.p -l ]
\mingw\lib\gcc-lib\mingw32\2.95.3-6........\mingw32\bin\ld.exe: cannot find -l--library=gpc =========================
The program (simple 'hello world' program) complies into an object file just fine with 'gpc -c test.p'. It would appear that gpc can find ld.exe but ld.exe is not responding correctally. I verified that the specs file is correct and tried both the install gpc and the patched gpc. Perhaps this is a problem with my MinGW install, however their mailing list archives are not functioning and I am unable to get any information from them. Below is my install details:
-- *MinGW 2.0.0-3 *GPC 2.1 (GNU Pascal version 2.1 (20020510), based on gcc-2.95.3-6 (mingw special) *GPC fix1 (20 sept. 2002 patch) *Windows 2000 Prof (sp3)
Any help or documentation would be helpful as I know nothing of this environment and am trying my best to learn it quickly.
Regards, David Hajoglou
::David Hajoglou ::Systems Administrator, Department of Computer Science ::Saint Mary's University of Minnesota ::Phone :: 507.457.1415 ::Fax :: 507.457.1401 ::Office :: LaSalle 141C ::Email :: dhajoglo@smumn.edu
On 19 Feb 2003 at 16:36, David Hajoglou wrote:
To Whom It May Concern,
I tried to locate any FAQ/manual information about the error I get but did not find any information. I installed MinGW and GNU Pascal on a windows machine and I can compile a program into an object file but I cannot go any further. When using gpcc the linker (ld.exe) fails with the following error:
========================== c:\MinGW\bin\gpcc test.p GPCC (Win32 (Mingw) build), v2.18: BP-compatibility shell for GNU Pascal. (c) 11th May 2002, Prof. A Olowofoyeku (The African Chief).
Compiling PROGRAM "test.p" ... CFG file = c:\mingw\bin\gpcc.cfg Args = [gpc --automake -s --no-typed-address --extended-syntax --ignore-function-results --no-io-checking --no-stack-checking -O2 -march=i486 -mcpu=i486 -O2 -mcpu=i686 --executable-file-name test.p]
\mingw\lib\gcc-lib\mingw32\2.95.3-6........\mingw32\bin\ld.exe: cannot find -lgcc ==========================
This is a gcc installation problem. The file that cannot be found is the relevant "libgcc.a". You needed to have installed gcc-2.95.3-6 (Mingw special), which is the gcc version that that GPC released was based on. Unfortunately, that gcc release seems to have been removed from the Mingw web site. So you either need to get it by installing the old Mingw 1.1 package: http://prdownloads.sourceforge.net/mingw/MinGW-1.1.tar.gz?download
or I can put a copy of the relevant "libgcc.a" on the Mingw (or GPC) we pages.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/