Thank you.
Yves Bailly is right, I forgot about Q_DECL_EXPORT & Q_DECL_IMPORT....
On 10.02.2016 18:13, Yves Bailly wrote:
-----Original Message-----
I'm trying to build my project on windows using MSVC 2013.
Project consist of shared lib project and app project. app project
depends on shared lib.
Everything is fine, but on final link I always receive error like:
"cannot open input file MyDll.lib".
MyDll.dll is built, but MyDll.lib doesn't exists.
Is it qmake's error?
If you're coming from a GCC world, there's an important difference between GCC
and MSVC: GCC exports symbols by default, while MSVC doens't. In MSVC, you need
to explicitly exports the symbols you want to link against in other projects.
If you don't export anything, then MSVC won't generate the .lib file.
See:
https://msdn.microsoft.com/en-us/library/3y1sfaz2.aspx
https://msdn.microsoft.com/en-us/library/a90k134d.aspx
...or Google for "__declspec(dllexport)".
Hope this helps,
--
Yves Bailly
Software developer
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest