Menu

SDL V. 1.2.8Dev - Pak

vca
2008-03-04
2012-09-26
  • vca

    vca - 2008-03-04

    Hello,
    I've tried several times to answer
    your reply to my post of 29/2/08, but
    was having a hard time logging in.

    Your reply did not resolve my problem:

    RE: SDL v. 1.2.8 Dev-Pak. (New)
    By: cpns (cpns) - 2008-02-29 05:57
    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
    

    This is what I've tried, my log follows:

    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: '-': No such file or directory
    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" '-' libmingw32 -lSDLmain -lSDL -lSDL_image -mwindows

    gcc.exe: '-': No such file or directory
    gcc.exe: libmingw32: 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" '-' libmingw32 .a-lSDLmain -lSDL -lSDL_image -mwindows

    gcc.exe: '-': No such file or directory
    gcc.exe: libmingw32: No such file or directory
    gcc.exe: .a-lSDLmain: No such file or directory

    make.exe: *** [Project1.exe] Error 1

    Execution terminated
    /**************/

    Thank you,

    Pellum.

     
    • cpns

      cpns - 2008-03-05

      You are being so obtuse that it is hard to believe!

      The linker option you need is:

      -lmingw32

      Just like you already have

      -lSDLmain -lSDL -lSDL_image

      for example.

      I put the '-' in quotes to distinguish it from a normal punctuation mark! I kind of assumed that you knew what you were doing but just did not notice what looked like a typographical ommission.

      Do you really need to explicitly link libmingw32.a in any case?

      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.