From: Luke D. <cod...@ho...> - 2003-09-06 02:33:46
|
----- Original Message ----- From: "feywulf" <fey...@ya...> To: <min...@li...> Sent: Saturday, September 06, 2003 5:59 AM Subject: [Mingw-users] problem installing SDL library in MinGW w/ MSYS > hi, > > I'm new to the list, and i've got a problem. I've installed MinGW to C:\MinGW and MSYS > to C:\msys. I extracted the SDL source to C:\files\SDL-1.2.6, and added C:\files as a > mount point in MSYS. Just for the record, it shouldn't matter whether you create extra mount points or not. > In MSYS i had some trouble getting SDL to compile, but i finally > got it compilled with this command "./configure && make && make install". The location > that SDL got put at is C:\msys\1.0\local. The subdirectories bin, include, lib, man, > and share are there. MinGW doesn't see them. > > When i run "$ gcc -lSDL" in the MSYS shell or the windows XP command prompt i get this > output "c:\MinGW\bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: cannot > find -lSDL". If i put the headers from C:\msys\1.0\local in C:\MinGW\include then > MinGW sees them, but where do i need to put the *.a files in order for MinGW to see > them? > > -feywulf Either do "configure --prefix=/mingw" so that the headers are installed in c:\mingw\include and the libraries in c:\mingw\lib, or leave them in /usr/local and tell the compiler where they are with "-I/usr/local/include" and "-L/usr/local/lib". Luke |