Thread: SDL Link Errors.

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    106

    SDL Link Errors.

    I have the... -lmingw32 -lSDLmain -lSDL stuff in my Further Linker Options bit in the dev C++ project options thing. However, I still get weird linktime errors.

    :\DEV-C_~1\Lib\\libSDL.a (SDL_systimer.o): In function `SDL_StartTicks':

    /home/hercules/release /SDL-1.2.8/ src/timer/SDL_systimer.c:73: undefined reference to

    `timeBeginPeriod@4'
    /home/hercules/release/ SDL-1.2.8/src/timer/

    SDL_systimer.c:74: undefined reference to `timeGetTime@0'

    C:\DEV-C_~1\Lib\\libSDL.a (SDL_systimer.o): In function `SDL_GetTicks':

    /home/hercules/release/ SDL-1.2.8/ src/timer/SDL_systimer.c:101: undefined reference to `timeGetTime@0'

    C:\DEV-C_~1\Lib\\libSDL.a (SDL_systimer.o): In function `SDL_SYS_TimerInit':

    /home/hercules/release/ SDL-1.2.8/src/timer/SDL_systimer.c:189: undefined reference to `timeBeginPeriod@4'

    (Pardon random linebreaks)

    I'm pretty sure I have SDL.DLL in the two places I need it. The libs are in the right folder. The includes are all there. Any idea what's up with SDL?

  2. #2
    ---
    Join Date
    May 2004
    Posts
    1,379
    Show me some code. I think you are calling functions that don't exist.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    106
    It's just the includes and and empty main(). No code. Would that make it fail at linking? I mean, I don't think it would -- I've compiled empty things before. Is SDL different?

    ---edit---

    Okay, someone said it was a windows error and that I needed another linker option, and they mentioned -lmm, which I... don't seem to have access to. He was a linux programmer apparently though so he was not really sure how valid that is though.Any ideas what he was getting at?
    Last edited by suzakugaiden; 06-15-2005 at 06:06 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock compilation errors
    By jmd15 in forum Networking/Device Communication
    Replies: 2
    Last Post: 08-03-2005, 08:00 AM
  2. SDL and MinGW Studio
    By Vicious in forum Tech Board
    Replies: 0
    Last Post: 07-30-2004, 09:59 PM
  3. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 01:43 PM