Hi, my project needs sdl.dll that it's in c:\sdl\; I can put dll in c:\win\system32 or in myProjects dir; but a way to to link dll to my project without change position of dll?
Thanks
Hi, my project needs sdl.dll that it's in c:\sdl\; I can put dll in c:\win\system32 or in myProjects dir; but a way to to link dll to my project without change position of dll?
Thanks
Regards
Either add the path to your sd.dll in the environment variables->path or put the dll in the system32 dir which is already set in the path.
Mithin
www.mithin.in
? enviromets variables in Windows? Isn't possible a link dll to only my projects? (with .net2003 or .pro file)
Regards
The safest way is to put that DLL in the same directory where the executable is.
To use that DLL in your project you need an import library. Look for a sdl.lib (or libsdl.a if you use MinGW). Then add:to your .pro file.Qt Code:
LIBS += -L<path to the directory with .lib file> -lsdlTo copy to clipboard, switch view to plain text mode
sorry it wasn't sdl but glew32.dll
in my .pro I have the line
do I need insert this?Qt Code:
win32:LIBS += C:\glew\lib\glew32.libTo copy to clipboard, switch view to plain text mode
Qt Code:
LIBS += - LC:\glew\lib\ -lglew32To copy to clipboard, switch view to plain text mode
I'm a bit confused; Help me is this is correct: If i link .lib in .pro, is dll necessary?
I'm using this in .pro win32:LIBS += C:\glew\lib\glew32.lib; am I linking glew in static way? (if so, why my application require me glew.dll when I launch the application?)
I hpe you're understanding what I'm saying...
Thanks
Regards
No.Originally Posted by mickey
Yes, that .lib file is just an import library. It doesn't implement any functionality from the DLL --- it only imports symbols from it, so you don't have to do it by hand.If i link .lib in .pro, is dll necessary?
in other word: is there a way to say myapplication (through .pro or from .net2003) 'go to take glew.dll in c:\glew32\' ??
Thanks
Regards
AFAIK, no.Originally Posted by mickey
Bookmarks