Qt-interest Archive, August 1999
dll problem
Message 1 in thread
Hi All,
I would like to build qt.lib as Dll one ,but I am getting this link error
link /NOLOGO /SUBSYSTEM:windows /DLL /OUT:..\lib\qt141.dll
@C:\TEMP\nma00150.
qapplication_win.obj : error LNK2001: unresolved external symbol _main
..\lib\qt141.dll : fatal error LNK1120: 1 unresolved externals
for your information :I am still using Visual C++5.0 and qt1.44
any idea?
Thanks
Ahmed.
A H M E D A B D E L A L I
Po Box 3655 C/S
Socorro, NM 87801
www.nmt.edu/~ahmed
Message 2 in thread
Ahmed Abdelali wrote:
>
> Hi All,
>
> I would like to build qt.lib as Dll one ,but I am getting this link error
>
> link /NOLOGO /SUBSYSTEM:windows /DLL /OUT:..\lib\qt141.dll
> @C:\TEMP\nma00150.
> qapplication_win.obj : error LNK2001: unresolved external symbol _main
> ..\lib\qt141.dll : fatal error LNK1120: 1 unresolved externals
>
> for your information :I am still using Visual C++5.0 and qt1.44
> any idea?
>
> Thanks
> Ahmed.
>
> A H M E D A B D E L A L I
> Po Box 3655 C/S
> Socorro, NM 87801
> www.nmt.edu/~ahmed
>
> --
> List archive and information: http://www.troll.no/qt-interest/
Hi
In the Qt-Dir exists a directory mkfiles with a zip-file for compiling
qt as a dll
(msvc_dll.zip). Just extract it and run nmake in the source-dir of qt.
this should work.
after compiling, you have several files in the lib directory of qt:
qt144.dll - the dll you wanted to have
qt144.lib - importlibrary for the dll
qtmain.lib - this lib must be statically linked to your program
(in this lib are the classes for qapplication and the
qmain-function, which cannot be in the dll)
Hope this helps you a bit
cu
Walter