D+Ubuntu+SDL_image said undefined reference

Michael P. baseball.mjp at gmail.com
Tue Dec 29 15:57:48 PST 2009


alisue Wrote:

> alisue Wrote:
> 
> Wow. Solved.
> 
> What I did is that compile SDL_video.d and SDL_image.d like:
> ------------------------------------------------------------------
> $ gdc -c hello.d -ISDL
> $ gdc -c SDL/SDL_image.d -ISDL
> $ gdc -c SDL/SDL_video.d -ISDL
> $ gdc -ohello hello.o SDL_image.o SDL_video.o -lSDL -lSDL_image
> -----------------------------------------------------------------------
> 
> Having no idea but work :-)

How come you are not using something like rebuild or DSSS? This would help having to avoid things like this.
Also, why did you decide not to use Derelict?



More information about the Digitalmars-d mailing list