On Fri, Aug 17, 2007 at 10:47:27PM +0100, Milan Marusinec wrote: > 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.
I tried that, but it didn't work. Maybe shell-dependent; I use /bin/bash on Mac OS X 10.3.9. > This way it already worked for me in one of my projects. I notice that you also include -framework Carbon, so I tried that as well. But it did not help a bit. Could it be related to versions of the various libraries? E.g., it may require 10.4.x. Still, I would like to know what is the matter. Thanks for further advice, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25 | Technische Universiteit Eindhoven FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal