Qt template specialization error and linking issues
-
You do not use extern "C" anywhere, right?
I created a small project with QUuid and I was not able to reproduce the problem.
I build it in Qt 4.8.5, 5.2.1, and 5.3.0I guess you will need to comment out the suspicious lines one by one and try to find what particular line cause this error.
-
i tried doing that .. but unfortunately i had like a lot of errors. that too in the in the qt header files ...so i suspect what i am doing is wrong.. another thing to mention here is that all my source files when i individually compile compile well but when i compile the entire project that's when i get into trouble.
-
Hmm just a guess, mabe you quuid stuff needs a qglobal.h, perhaps try
#include <qglobal.h>
just before
#include <ui_blackmainwindow.h>
in your blackmainwindow.h (or the .h file where the quuid stuff goes) -
Hi hskoglund,
I tried including q global but that has not improved the situation.
-
Hi There,
Dose anyone have any more suggestions??
-
Have you tried to build the project on other OS (Linux, MacOS X) ?
-
I tried building it in Mac OS X and it works fine, and i have not tried bulding it in linux yet.
-
Do you use correct compiler to build on windows?
Check in the settings what compiler version is selected to Qt 5. -
I a using MinGW4.8 32 bit compile which came along the qt .
-
You don't have other versions of Qt and compilers, right?
-
nope i uninstalled the previous versons which i had previously installed..
-
What if
create a simple Qt project
in the header of MainWindow #include <QUuid>
add QUuid variable to MainWindow
try to compile
Does it generate the error?