[fpc-pascal] Re: Help needed with (JEDI-)SDL on Mac OS X with FPC 2.0.4 powerpc

Milan Marusinec milan at marusinec.sk
Fri Aug 17 23:47:27 CEST 2007


Tom Verhoeff wrote:
> Any idea what I messed up?
> 
> This is what my command line looks like:
> 
> fpc -Fu/Users/wstomv/Download/JEDI-SDLv1.0/SDL/Pas -Fl/usr/X11R6/lib -XMSDL_main -k-L/sw/lib -k-lSDL -k-framework -kOpenGL -k-framework -kCocoa -Mdelphi demo02

I would suggest to pass the -k switch this way:

-k"-framework Carbon -framework Cocoa -framework OpenGL -lSDL -L/sw/lib"

because, fpc passes the "whole content of -k switch" to ld.

This way it already worked for me in one of my projects.

Milano




More information about the fpc-pascal mailing list