Menu

SDL v. 1.2.8 Dev-Pak.

vca
2008-02-29
2012-09-26
  • vca

    vca - 2008-02-29

    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.

     
    • cpns

      cpns - 2008-02-29

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.