On 10 Apr 2003 at 14:02, Dominique Louis wrote:
No I did not realise that you need to have gcc installed before installing GPC. I assumed that the GPC distro I downloaded would come with everything to hit the road running.
You will normally need the gpc, gcc, binutils, Mingw runtime, and w32api packages. gcc is of course needed for libgcc.a, but there may also be some other stuff needed (gcc headers) if you need to build the crt unit for example. The Mingw runtime and w32api provide some necessary libraries, etc. gpc binary releases normally only contain the gpc compiler itself, and it is assumed that you already have (or will get) a functional gnu toolchain. Versions that include "libgcc.a" and stuff can also be easily produced, but this is not the norm.
The "Dev+GNU Pascal" package was an attempt to provide an "all-in- one" download for gpc-mingw. However, the gpc compiler in the it is the release version of gpc 2.1 (based on gcc-2.95.3-6). That compiler does not contain many of the recent developments in gpc.
Getting the Mingw 2.0.0.x package from the Mingw download page (http://sourceforge.net/project/showfiles.php?group_id=2435) will give you most of these things (but many of them will not be the most up-to-date versions).
I am now getting yet more errors along the lines of..
C:/Progra~1/Borland/gpc/lib/gcc-lib/mingw32/3.2.2/libgpc.a(rts.o)(.tex t+0x9cb):rts.c: undefined reference to `sqrtl'
So it looks like I need to invest some time into trying to get gcc setup correctly before proceeding any further.
Like I said, the minimum you need is: 1. gpc binary distro 2. mingw runtime 3. w32api 4. binutils 5. gcc (if the gpc binary distro was not packaged with a "with-gcc" option). In this case, you should be getting the gcc-3.2.2 binary distro (currently listed as a release candidate).
All are available from the Mingw download page. Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/