On 20.05.2011 16:30, asif saeed wrote: > I build fltkddl using the debug configuration. I got an FLTKDLLD.DLL file in > the TEST directory. But the compiler cannot seem to FIND that FLTKDLLD.DLL > file in the TEST sub-directory of FLTK - E:\libs\fltk-1.3.x-r8514\test. I > specified this directory in the PATH environment variable but no success. I > have also tried specifying the path (PATH= E:\libs\fltk-1.3.x-r8514\test) in > the Project Settings/Debugging/Environment option - no success. I need your > help.
In fact it's the linker (and later the windows runtime system, loader, or whatever it's called...) that needs to find the DLL (at runtime), but for linking /with/ a dll you need the .LIB file that contains the stubs that are needed to resolve the symbols (functions and external variables) at build time. Again I can't tell you exactly where to find the .lib files, but they are likely to be built in the lib/ subdirectory. Specify /this/ directory and (if this is needed in your project) the .lib (or maybe no) extension for the library, i.e. fltkdlld.lib or only fltkdlld. When you /run/ your program later, copy the *.dll* file to the same directory where your .exe file is, or set the PATH variable to find the .dll file, or whatever is necessary. Shortcut: you need the .lib file for building (linker stage) and the .dll file for runtime (set PATH or copy to the same dir. where the .exe file resides). Note that MS "try to make it much harder"(TM) by inventing things like manifest files and SXS on newer Windows systems :-( Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

