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
 
1 20th October 23:32
aaron gray
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW



I have tried downloading MinGW GPC from SourceForge but it does not produce
a .exe when compiling. I can get a .o file with -c flag on gpc but no .exe.

If I knew what libraries gpc used I could do a separate ld link.

Any help or suggestions,

Aaron
  Reply With Quote


  sponsored links


2 22nd October 02:52
marco van de voort
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW



Maybe it made a a.out file ?
  Reply With Quote
3 22nd October 02:52
aaron gray
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW


No, nothing !

Same goes for http://www.gnu-pascal.de/contrib/chief/win32/mingw32/ with 3.9
MinGW runtime ?

Its not picking up the gcc lib :-

gpc secd.pas

ld: cannot find -lgcc

I am confused, anyone put any light on the situation, whats missing ?

Aaron
  Reply With Quote
4 22nd October 02:54
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
5 22nd October 02:56
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
6 22nd October 02:57
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
7 22nd October 02:57
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
8 22nd October 02:57
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
9 25th February 05:26
marco van de voort
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW ?


Maybe it made a a.out file ?
  Reply With Quote
10 25th February 05:26
aaron gray
External User
 
Posts: 1
Default Anyone direct me to working version of GPC on MinGW ?


No, nothing !

Same goes for http://www.gnu-pascal.de/contrib/chief/win32/mingw32/ with 3.9
MinGW runtime ?

Its not picking up the gcc lib :-

gpc secd.pas

ld: cannot find -lgcc

I am confused, anyone put any light on the situation, whats missing ?

Aaron
  Reply With Quote
Reply


Thread Tools
Display Modes




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