actually i want a shared library (dll).

but if you want to use that library you have to link a *.lib to
your program at compile time and ship then the *.dll with your exe so
you can use the shared library at run time.

for instance, that is the code i used to put in my makefiles i created
without qmake:

Qt Code:
  1. libbasic: $(BASIC_OBJ)
  2. link \
  3. /NOLOGO $(QTLIB) opengl32.lib vfw32.lib gdi32.lib user32.lib \
  4. /BASE:0x39D00000 \
  5. /SUBSYSTEM:windows /DLL /incremental:no /VERSION:3.31 \
  6. /out:libbasic.dll /implib:libbasic.lib \
  7. /LIBPATH:"$(QTDIR)\lib" $(BASIC_OBJ)
  8. lib /out:libbasic.lib /subsystem:console $(BASIC_OBJ)
To copy to clipboard, switch view to plain text mode 

this builds from obj files a libbasic.lib and a libbasic.dll.


regards,
jh