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
Printable View
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
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.
? enviromets variables in Windows? Isn't possible a link dll to only my projects? (with .net2003 or .pro file)
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.Code:
LIBS += -L<path to the directory with .lib file> -lsdl
sorry it wasn't sdl but glew32.dll
in my .pro I have the line
do I need insert this?Code:
win32:LIBS += C:\glew\lib\glew32.lib
Code:
LIBS += - LC:\glew\lib\ -lglew32
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
No.Quote:
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.Quote:
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
AFAIK, no.Quote:
Originally Posted by mickey