Set DLL load path? lazarus / 11-Options ---------------------------------------------------------------------- Superdisk · 2013-04-15 01:11 In Project -> Project Options -> Compiler Options -> Paths there is an option for the Libraries path (-Fl). I am using SDL in a project, but need the DLLs to be in a subfolder called native. Modifying this path doesn't seem to work, and when I start the project using the "Play" button, the debugger borks. When I make a batch file that includes "native" in the system PATH, the program starts fine. I need a way to configure Lazarus to include this folder in the PATH environment variable when starting the project.. how do I do this? Thanks. ---------------------------------------------------------------------- Superdisk · 2013-04-17 02:30 Seriously, can no one answer this? On the Lazarus forums? ---------------------------------------------------------------------- typo · 2013-04-17 03:28 How do you load this DLL? ---------------------------------------------------------------------- BigChimp · 2013-04-17 05:50 AFAIU, what you did should work according to the docs (http://wiki.laz arus.freepascal.org/IDE_Window:_Compiler_Options#Libraries) Perhaps people who used this functionality can comment... ---------------------------------------------------------------------- marcov · 2013-04-17 07:07 The -Fl path is for linking. The DLL must be there a linktime. Your problem is with running, which means adjusting %path% ---------------------------------------------------------------------- BigChimp · 2013-04-17 07:18 Quote from: marcov on April 17, 2013, 09:07:48 amThe -Fl path is for linking. The DLL must be there a linktime. Thanks, Marco: updated http://wiki.lazarus.freepascal.org/IDE_Window:_ Compiler_Options#Libraries