Dominique, Did you put the sdl.framework bundle (folder) somewhere that the linker can find it? Typically this would be in the Library/Frameworks folder.
If the linker can find the framework it should be able to find any externally declared functions in your program. You shouldn't need any link directives in your source either. Note how it's done in FPCMacOSAll.pas: function sqrt(x: double_t): double_t; external name '_sqrt'; When you include -framework carbon the linker is able to find the "_sqrt" function in the Carbon framework's library. Thanks. -Phil -----Original Message----- From: Dominique Louis [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 7:53 AM To: lazarus@miraclec.com Subject: RE: [lazarus] Using SDL.framework within Lazaru project Hi Philip, Thanks for pointing this out. On the Mac that option was being hidden due to the dialog size, so I could not see the area where I needed to put the framework. This is now entered, but I now get a "Unable to find sdl" error message when it tris to link to the framework. Is there something else I need to do? Also, if I have sdl.pas in the project file, it complains that it cant link to -lSDL-1.2.0 . If it finds the framework, does it still need to link to it via -l? Thanks, Dominique. Quoting "Hess, Philip J" <[EMAIL PROTECTED]>: > Dominique, > > On the Compiler Options tab, check the "Pass Options To The Linker" box > and enter this in text box: -framework sdl > > This will be passed to FPC as -k'-framework' -k'sdl', which then passes > the switches on to the linker. > > Thanks. > > -Phil > > > -----Original Message----- > From: Dominique Louis [mailto:[EMAIL PROTECTED] > Sent: Monday, October 29, 2007 9:38 AM > To: lazarus@miraclec.com > Subject: [lazarus] Using SDL.framework within Lazaru project > > Hi all, > What is the correct way to use an *.framework within a Lazarus > project? > > I can get SDL.framework working with XCode, but don't know where put > the -kSDL line to get it to pull in the framework. > > Thanks, > > > Dominique. > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives