Qt

Qt

Hi, I'm wondering how to import the whole of this SDK into Qt framework? 

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

we currently do not support PerC SDK under QT framework.

HI, there are some tips that can help you to use PerC under QT framework.

Though i'm still learning on it, but here is what i did.

In Qt's .pro file, you have to add

/NODEFAULTLIB:libcmtd.lib\

/NODEFAULTLIB:msvcprtd.lib

 

under Release:LIBS += or Debug:LIBS+=

and then you include the library you want to use.

However, Once you use PerC on QT, there is a limitation which some of the std function that doesn't work again. Maybe library conflict or else?

for example, i can't use cout..., it will show

mainwindow.obj:-1: error: LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > std::cout" (__imp_?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A)

so currently i just use others qt functions to replace it. that's all, hope it can help you !

Leave a Comment

Please sign in to add a comment. Not a member? Join today