[SDL] compiling SDL-1.2.12 with cbuilder6

Charles McGarvey onefriedrice at brokenzipper.com
Mon Nov 5 07:31:36 PST 2007


----- Original Message ----- 
From: "Alberto Luaces" <aluaces at udc.es>
To: "A list for developers using the SDL library. (includes SDL-announce)" 
<sdl at lists.libsdl.org>
Sent: Monday, November 05, 2007 8:01 AM
Subject: Re: [SDL] compiling SDL-1.2.12 with cbuilder6


El Monday 05 November 2007 11:13:08 Francesco escribió:
> > In my case this does not link (.."Unresolved external _SDL_init..."..).

> Unresolved external symbol errors at linking time are usually issued when 
> you
> don't tell the linker what additional libraries/objetcs you will also 
> need,
> in this case SDL's. I think you have to tell your linker you want to use
> "sdl.lib" and "sdlmain.lib", if I remember correctly.



Yeah, exactly.  I don't know how to set linker flags in cbuilder, but you 
need these flags:

-lSDLmain -lSDL

If that doesn't work, make sure you have actually put these libraries where 
the linker will find them.  The libraries may have a ".a" extension...  Read 
your linker documentation to learn how to set library search paths, etc..



More information about the SDL mailing list