[fpc-pascal] SDL 2.0 Test, Need Advice

Marco van de Voort marcov at stack.nl
Mon Apr 8 09:07:19 CEST 2013


In our previous episode, Anthony Walter said:
> 2) I cannot compile a i386-win32 SDL2 application on Linux using the SDL2
> static libraries (define static in CrossSDL2.pas which should be reference
> i386-win32/libSDL2.a) for Windows. I get a bunch of errors similar to this:
> 
>   test.lpr(79,1) Error: Undefined symbol:
> CROSSSDL2_$$_SDL_GL_LOADLIBRARY$PCHAR$$LONGINT
>   ...
>   test.lpr(79,1) Error: Undefined symbol:
> CROSSSDL2_$$_SDL_DESTROYWINDOW$PSDL_WINDOW

This is related to how you link. Missing FPC generated symbols is extremely 
rare when the buildprocess is under FPC's control.

See what you do differently (from just using fpc <xx>), and check it.
Thoroughly.
 



More information about the fpc-pascal mailing list