Hello,
I'm running Dev-C++ 4.9.9.2, Win. XP-Pro.; and coding in the "C" language.
This is my first attempt at SDL programming.I've copied the SDL.dll,
and SDL_mixer to Windows\system32 folder; and added the following to the
linker: lmingw32 -lSDLmain -lSDL -lSDL_image -mwindows.
Look at the log (and indeed what you have typed). You are missing the '-' before lmingw32. Consequently it thinks you are attempting to link a file called "lmingw32" rather than libmingw32.a.
The fact that it was asking for a file "lmingw32" should have rang alarm bells.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm running Dev-C++ 4.9.9.2, Win. XP-Pro.; and coding in the "C" language.
This is my first attempt at SDL programming.I've copied the SDL.dll,
and SDL_mixer to Windows\system32 folder; and added the following to the
linker: lmingw32 -lSDLmain -lSDL -lSDL_image -mwindows.
The program I'm trying to compile follows:
include <stdlib.h>
include <SDL/SDL.h>
int main( int argc, char* args[] )
{
// Start SDL SDL_Init( SDL_INIT_EVERYTHING );
// Quit SDL SDL_Quit();
return 0;
}
I'm receiving this error:lmingw32 No such file or directory.
I've done a search at this forum, and found many such posts
displaying this error. However none of the solutions seem to work
for me.
Please assist me with this:my compile log follows.
Compiler: Default compiler
Building Makefile: "D:\mysdl\Makefile.win"
Executing make...
make.exe -f "D:\mysdl\Makefile.win" all
gcc.exe Project1.o -o "Project1.exe" -L"D:/Dev-Cpp/lib" lmingw32 -lSDLmain -lSDL-mwindows -mwindows
gcc.exe: lmingw32: No such file or directory
make.exe: *** [Project1.exe] Error 1
Execution terminated
/***************/
Compiler: Default compiler
Building Makefile: "D:\mysdl\Makefile.win"
Executing make...
make.exe -f "D:\mysdl\Makefile.win" all
gcc.exe Project1.o -o "Project1.exe" -L"D:/Dev-Cpp/lib" lmingw32 -lSDLmain -lSDL -lSDL_image -mwindows
gcc.exe: lmingw32: No such file or directory
make.exe: *** [Project1.exe] Error 1
Execution terminated
Thank you,
Pellum.
Look at the log (and indeed what you have typed). You are missing the '-' before lmingw32. Consequently it thinks you are attempting to link a file called "lmingw32" rather than libmingw32.a.
The fact that it was asking for a file "lmingw32" should have rang alarm bells.
Clifford