Unsolved Qt LNK2019: unresolved external symbol "__declspec(dllimport)..." VTK
-
Hi and welcome to devnet,
Are you trying to build this example ?
-
Hello! Thank you!
Yes that example! Any help?
-
I missed something the first time I read your thread. Visual Studio 2010 ? Did you build VTK yourself with that version of VS ?
-
Hi
To add to @SGaist ,
In Creator, you also have selected VS2010 as compiler ? -
Hello!
I build VTK myself with VS! I build with Release mode, should I build with Debug mode instead?
How do I select VS as compiler in Qt?
Thank you very much!!
-
-
@jsulm Yes, The VS is selected as the compiler.
Maybe the problem is the build mode?(release/debug)?Thank you again
-
I might be insisting but do you have everything build with the same version of MSVC ? Same architecture ?
-
@SGaist Yes, everthing was build with MSVC same version.
-
Wouldn't you be missing the
vtkWidgets
library in your .pro file ? -
@SGaist No.
Maybe it's because I am building my project in VS 64 bit and Qt only detects VS compiler 32 bit?
How can I make Qt work with 64 bit?Thank you!!
-
You have to install a 64bit build of Qt. You can't mix and match libraries of different architectures.
[Edit: fixed wording... Thanks @jsulm]
-
@SGaist said in Qt LNK2019: unresolved external symbol "__declspec(dllimport)..." VTK:
You can mix
You can't mix :-)
-
Hola , para yo resolver este error cambie de modo DEBUG a RELEASE y corrio mi app.