Hi all, During the compilation of a project using the DevPascal IDE and the latest release, I get the following error...
C:/Progra~1/Borland/gpc/bin/ld.exe: cannot find -lsdl
I gather that "sdl" is the DLL that ld.exe is looking for, but where should it be placed so that it can find it. The SDL exists in the System32 directory as well as int he same directory as the project and it still does not find it.
I have not had a response to my previous emails, so am starting to wonder if I have broken some kind of protocol before posting here?
Any clarifications welcome.
Sincerely
Dominique http://www.DelphiGamer.com := go on, write a game instead;
Dominique Louis wrote:
During the compilation of a project using the DevPascal IDE and the latest release, I get the following error...
C:/Progra~1/Borland/gpc/bin/ld.exe: cannot find -lsdl
I gather that "sdl" is the DLL that ld.exe is looking for, but where should it be placed so that it can find it. The SDL exists in the System32 directory as well as int he same directory as the project and it still does not find it.
I have not had a response to my previous emails, so am starting to wonder if I have broken some kind of protocol before posting here?
There was a response by Eike Lange on 28 Feb. He even CCed your personal address Dominique@SavageSoftware.com.au. If you missed some mails in the list, you can check the archives at http://gnu-pascal.de/crystal/gpc/en/
(Of course, if this address doesn't work, then you probably won't get *this* mail, either ...)-:
Frank
On Wed, Apr 09, 2003 at 09:26:43PM +0200, Frank Heckenbach wrote:
Dominique Louis wrote:
I have not had a response to my previous emails, so am starting to wonder if I have broken some kind of protocol before posting here?
There was a response by Eike Lange on 28 Feb. He even CCed your personal address Dominique@SavageSoftware.com.au. If you missed some mails in the list, you can check the archives at http://gnu-pascal.de/crystal/gpc/en/
And you didn't receive respose from me, because some of the questions were out of my knowledge. I'm not good at win hacking.
Eike
Hi Frank and Eike, Yes I did received a response from Eike and I have implemented quite a few of his suggestions, I have also been in contact with Prof. Olowofoyeku, who has helped me immensely offline recently.
But as Eike pointed out he was unable to help with the Win32 specific side of things and I have hassled Prof. Olowofoyeku so much over the last few days I thought I would give him a break.
So as mentioned I am now faced with the Win32 error message ld.exe: cannot find -lsdl
and I do not know where it expects -lsdl to be.
Can anyone shed some light where I have messed up?
Thanks,
Dominique http://www.DelphiGamer.com := go on, write a game instead;
Frank Heckenbach wrote:
Dominique Louis wrote:
During the compilation of a project using the DevPascal IDE and the latest release, I get the following error...
C:/Progra~1/Borland/gpc/bin/ld.exe: cannot find -lsdl
I gather that "sdl" is the DLL that ld.exe is looking for, but where should it be placed so that it can find it. The SDL exists in the System32 directory as well as int he same directory as the project and it still does not find it.
I have not had a response to my previous emails, so am starting to wonder if I have broken some kind of protocol before posting here?
There was a response by Eike Lange on 28 Feb. He even CCed your personal address Dominique@SavageSoftware.com.au. If you missed some mails in the list, you can check the archives at http://gnu-pascal.de/crystal/gpc/en/
(Of course, if this address doesn't work, then you probably won't get *this* mail, either ...)-:
Frank
On 10 Apr 2003 at 10:21, Dominique Louis wrote:
Hi Frank and Eike, Yes I did received a response from Eike and I have implemented quite a few of his suggestions, I have also been in contact with Prof. Olowofoyeku, who has helped me immensely offline recently.
But as Eike pointed out he was unable to help with the Win32 specific side of things and I have hassled Prof. Olowofoyeku so much over the last few days I thought I would give him a break.
;)
So as mentioned I am now faced with the Win32 error message ld.exe: cannot find -lsdl
and I do not know where it expects -lsdl to be.
"ld" is looking for either "libsdl.dll.a" or "libsdl.a". If that library file does not exist on your system, then you will need to create it. If you have sdl.dll, then you can create an import library for it, using the batch file I sent to you a while ago. The import library should be called "libsdl.dll.a", and it should be in your /mingw/lib/ directory or where ever you have your gcc/gpc libraries.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
Hi, Yes I had created them but they were in the same directory as the SDL.pas file. I thought they were needed locally to the pas file to be linked in.
I have moved them and that bit seems to work, but it now complains that "ld.exe: cannot find -lgcc".
I managed to find a libgcc.a under my old 2.95 wingw directory, but nothing is included in the newer 3.2.2 directory which I downloaded from http://www.gnu-pascal.de/contrib/chief/win32/mingw32/ ( April 1 Snapshot ).
Is the newer libgcc.a downloadable separately, becuase if I try and use the 2.95 one it reports quite a few errors?
Thanks,
Dominique http://www.DelphiGamer.com := go on, write a game instead;
Prof. A Olowofoyeku (The African Chief) wrote:
On 10 Apr 2003 at 10:21, Dominique Louis wrote:
Hi Frank and Eike, Yes I did received a response from Eike and I have implemented quite a few of his suggestions, I have also been in contact with Prof. Olowofoyeku, who has helped me immensely offline recently.
But as Eike pointed out he was unable to help with the Win32 specific side of things and I have hassled Prof. Olowofoyeku so much over the last few days I thought I would give him a break.
;)
So as mentioned I am now faced with the Win32 error message ld.exe: cannot find -lsdl
and I do not know where it expects -lsdl to be.
"ld" is looking for either "libsdl.dll.a" or "libsdl.a". If that library file does not exist on your system, then you will need to create it. If you have sdl.dll, then you can create an import library for it, using the batch file I sent to you a while ago. The import library should be called "libsdl.dll.a", and it should be in your /mingw/lib/ directory or where ever you have your gcc/gpc libraries.
Best regards, The Chief
Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
On 10 Apr 2003 at 12:26, Dominique Louis wrote:
Hi, Yes I had created them but they were in the same directory as the SDL.pas file. I thought they were needed locally to the pas file to be linked in.
I have moved them and that bit seems to work, but it now complains that "ld.exe: cannot find -lgcc".
I managed to find a libgcc.a under my old 2.95 wingw directory, but nothing is included in the newer 3.2.2 directory which I downloaded from http://www.gnu-pascal.de/contrib/chief/win32/mingw32/ ( April 1 Snapshot ).
This is because it is assumed that you already have gcc 3.2.2 installed. What version of gcc do you have? If you type "gcc -v" you will see the version number - and it has to match the gcc version that your GPC is based on.
Anyway, you can download gcc-3.2.2 from the Mingw download page: http://prdownloads.sourceforge.net/mingw/gcc-3.2.2-20030208- 1.tar.gz?download
Or else, you can download a GPC binary that is based on gcc-2.95.3-6. Unfortunately, this will have to be the penultimate GPC snapshot: http://www.gnu-pascal.de/contrib/chief/win32/mingw32/gpc-20030209-gcc- 2.95.3-6-with-gcc.i386-pc-mingw32-1.tar.gz
(mind the word wrapping on these URLs).
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
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.
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)(.text+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.
Dominique http://www.DelphiGamer.com := go on, write a game instead;
Prof. A Olowofoyeku (The African Chief) wrote:
On 10 Apr 2003 at 12:26, Dominique Louis wrote:
Hi, Yes I had created them but they were in the same directory as the SDL.pas file. I thought they were needed locally to the pas file to be linked in.
I have moved them and that bit seems to work, but it now complains that "ld.exe: cannot find -lgcc".
I managed to find a libgcc.a under my old 2.95 wingw directory, but nothing is included in the newer 3.2.2 directory which I downloaded from http://www.gnu-pascal.de/contrib/chief/win32/mingw32/ ( April 1 Snapshot ).
This is because it is assumed that you already have gcc 3.2.2 installed. What version of gcc do you have? If you type "gcc -v" you will see the version number - and it has to match the gcc version that your GPC is based on.
Anyway, you can download gcc-3.2.2 from the Mingw download page: http://prdownloads.sourceforge.net/mingw/gcc-3.2.2-20030208- 1.tar.gz?download
Or else, you can download a GPC binary that is based on gcc-2.95.3-6. Unfortunately, this will have to be the penultimate GPC snapshot: http://www.gnu-pascal.de/contrib/chief/win32/mingw32/gpc-20030209-gcc- 2.95.3-6-with-gcc.i386-pc-mingw32-1.tar.gz
(mind the word wrapping on these URLs).
Best regards, The Chief
Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
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/