Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Programming languages > Anyone direct me to working version of GPC on MinGW
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
11 25th February 05:26
marco van de voort
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW ?



Do you install in a directory with spaces, umlauts or something like that?

Some of the mingw/cygwin tools are sensitive to that.

Also be careful if you have installed Free Pascal. It also brings mingw tools
(in a different version). Clean your %PATH% statement.

For the rest we have to wait on the Chief remarks I'm afraid.
  Reply With Quote


  sponsored links


12 25th February 05:27
waldek hebisch
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW ?



Have you tried

gpc -v secd.pas

It should print command lines for programs inveked by gpc. The last part
should be linker command line.

I checked the gpc-20050331-with-gcc.i386-pc-mingw32.tar.gz tarball and
libgcc.a is in the mingw/lib/gcc-lib/mingw32/3.2.3/ subdirectory. So
it seems that info about location of libgcc.a is not passed to the linker.

It is hard to tell more without knowing details of your setup: paths to
mingw directory, output of gpc -v ...

--
Waldek Hebisch
hebisch@math.uni.wroc.pl
  Reply With Quote
13 25th February 05:27
aaron gray
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW ?


c:\mingw\bin\..\lib\gcc-lib\mingw32\3.2.2\..\..\..\..\mingw32\bin\ld.exe -Bdyna
mic c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.2/../../../crt2.o
c:/mingw/bin/../li
b/gcc-lib/mingw32/3.2.2/crtbegin.o -Lc:/mingw/bin/../lib/gcc-lib/mingw32/3.2.2
-
Lc:/mingw/bin/../lib/gcc-lib -Lc:/mingw/lib/gcc-lib/mingw32/3.2.2 -Lc:/mingw/bin
/../lib/gcc-lib/mingw32/3.2.2/../../../../mingw32/lib -Lc:/mingw/lib/gcc-lib/min
gw32/3.2.2/../../../../mingw32/lib -Lc:/mingw/bin/../lib/gcc-lib/mingw32/3.2.2/.
../../.. -Lc:/mingw/lib/gcc-lib/mingw32/3.2.2/../../..
C:\DO***E~1\AARONG~1\LOCAL
S~1\Temp/cc2leaaa.o -lgpc -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32
-lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt
c
:/mingw/bin/../lib/gcc-lib/mingw32/3.2.2/crtend.o

c:\mingw\bin\..\lib\gcc-lib\mingw32\3.2.2\..\..\..\..\mingw32\bin\ld.exe:
cannot
find -lgcc

Its 'gcc' that is not being found. There does not seem to be a gcc.a
anywhere ?

Aaron
  Reply With Quote
14 25th February 05:27
waldek hebisch
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW ?


ld automatically adds lib prefix (on Windows it also tries name without
the prefix). So really ld wants to see libgcc.a.

The the output above suggest that you are using wrong gpc version. The
gpc-20050331-with-gcc.i386-pc-mingw32.tar.gz tarball corresponds to
gcc-3.2.3, but the paths you posted correspong to gcc-3.2.2. So it
seems that you are picking some different gpc.exe, not the one
from Prof A Olowofoyeku tarball.

gpc-20050331-with-gcc.i386-pc-mingw32.tar.gz puts libgpc.a in

\mingw\lib\gcc-lib\mingw32\3.2.3 directory

but your gpc thinks it should be in the

\mingw\lib\gcc-lib\mingw32\3.2.2 directory


--
Waldek Hebisch
hebisch@math.uni.wroc.pl
  Reply With Quote
15 25th February 05:27
aaron gray
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW ?


Ah, strange I got the same wrong result twice in a row.

I have reinstalled and am getting an 'a.exe' now

Thank you,

Aaron
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666