[SDL] cross-compiling SDL for uclinux

Sam Lantinga slouken at devolution.com
Sun Jan 5 13:19:01 PST 2003

> Dear all,

> after cross-compiling sdl-1.2.5,then cross-compile the demos of test
> directory,
> but only the file testtypes can be compiled successfully.
> when cross-compiling SDL-1.2.5, I use option --enable-static
> --disable-shared.

> there are some errors as follows:
> testhread.tmp:In fucntion 'ThreadFunc':
> testhread.tmp(.text+0x78):undefined reference to 'SDL_ThreadID'
> testhread.tmp(.text+0x108):undefined reference to 'SDL_Delay'
> testhread.tmp:In fucntion 'killed':
> testhread.tmp(.text+0x1ac):undefined reference to 'SDL_Delay'
> testhread.tmp:In fucntion 'main':
> testhread.tmp(.text+0x220):undefined reference to 'SDL_Init'

It sounds like the SDL library isn't being linked in.
What's your link line?

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment

More information about the SDL mailing list