D+Ubuntu+SDL_image said undefined reference

alisue alisue.seiga at gmail.com
Tue Dec 29 12:28:56 PST 2009


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 :-)



More information about the Digitalmars-d mailing list