Getting LNK2019 error on plugin compilation
-
wrote on 28 Jan 2019, 15:41 last edited by
any update?
-
Hi,
From the looks of it, you don't export any symbol from your library. This means that, on Windows, the linker won't find them.
-
wrote on 28 Jan 2019, 22:13 last edited by deleted456
@SGaist said in Getting LNK2019 error on plugin compilation:
This means that, on Windows, the linker won't find them.
Hello thanks for you answer, to be honest im quite newbie to qt and im not exactly got what you have suggested. You mean the compiler doesnt found qcadcore.lib,qcadgui.lib and qcadecmaapi.lib files in exampleplugin.pro file? And if so how can i solve it?
Thanks a lot for your help -
Did yes, they want to see on them.It's rather that they are not generated because no symbol were exported.
[edit: Something went wrong with the answer SGaist]
-
wrote on 28 Jan 2019, 22:40 last edited by
Sorry what do you mean?
I had .dll files from source code and used this method https://adrianhenke.wordpress.com/2008/12/05/create-lib-file-from-dll/ to create .lib files
-
Sorry what do you mean?
I had .dll files from source code and used this method https://adrianhenke.wordpress.com/2008/12/05/create-lib-file-from-dll/ to create .lib files
@wodasdsa You should read http://doc.qt.io/qt-5/sharedlibrary.html
-
wrote on 30 Jan 2019, 14:54 last edited by
i dont think the problem is in libraries i cant compile without them either..
-
Can you show the relevant header(s) content ?
-
wrote on 1 Feb 2019, 11:09 last edited by
Sure,
to see shared.pri you can check the following link,
https://github.com/qcad/qcad/blob/master/shared.priThanks
-
You're on Windows and not exporting any symbol hence the problem. Do as @jsulm suggested and use the export macros.
-
wrote on 3 Feb 2019, 00:20 last edited by
How can i do that? im newbie to qt and didnt understand most the terms used in that documentation..
-
Just follow the indications in the "Using Symbols from Shared Libraries" part.
18/20