Qt MSVC2013 cannot link against .dll
General and Desktop
6
Posts
2
Posters
1.6k
Views
1
Watching
-
Hi,
That's normal, you don't link against dlls but either against "import libraries":http://en.wikipedia.org/wiki/Dynamic-link_library#Import_libraries or static libraries, both having the same extension.
-
Are you exporting any symbol from your library ? If not, then on Windows you won't have any import library generated.
-
Not explicitly. I export only descriptor classes generated by protobuf. It works everywhere except on Windows. But, for some reason it seems to be no problem to use the static library on Windows anyway (on other platforms protobuf classes do not like to be included more than once)
-
Then you should do the exports. Qt has some macro helpers for that that you can re-use.