visual c++ - Qt 4.8.2 + vs2010 + static + project build issues LNK2019 & LNK2005 -


i had compiled static version of qt4.8.2 following instructions post http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/

however, encountered list of errors when compile project, lnk2019 & lnk2005 related.

i attached error messages @ bottom.

for lnk2005 related errors , included libcmt @ linker->input->ignore specific default libraries, , related errors disappear error list, right way it?

for lnk2019 related errors, couldn't resolve them, please give me instructions.

here project settings:

c/c++ -> code generation -> runtime library: multi-threaded debug (/mtd)  c/c++ -> language -> treat wchar_t built in type: no ( /zc:wchar_t- )  linker-> input -> additional dependencies:  imm32.lib ws2_32.lib winmm.lib qtmaind.lib qtcored.lib qtguid.lib wsock32.lib 

lnk2019 related error messages:

- error 161 error lnk2019: unresolved external symbol    "__declspec(dllimport) public: class std::basic_string<char,struct    std::char_traits<char>,class std::allocator<char> > __thiscall    qstring::tostdstring(void)const "    (__imp_?tostdstring@qstring@@qbe?av?$basic_string@du?$char_traits@d@std@@v?$allocator@d@2@@std@@xz)    referenced in function "private: void __thiscall    mainform::on_actionconfiguration_triggered(void)"    (?on_actionconfiguration_triggered@mainform@@aaexxz) c:\working\projlocation\test\mainform.obj   test   - error    163 error lnk2019: unresolved external symbol    "__declspec(dllimport) public: class qstring & __thiscall    qstring::append(char const *)" (__imp_?append@qstring@@qaeaav1@pbd@z)    referenced in function "private: void __thiscall    mainform::summaries_series(struct series const *)"    (?summaries_series@mainform@@aaexpbuseries@@@z)  c:\working\projlocation\test\mainform.obj   test   -  error   162 error lnk2019: unresolved external symbol    "__declspec(dllimport) public: __thiscall qstring::qstring(char const    *)" (__imp_??0qstring@@qae@pbd@z) referenced in function "private: void __thiscall mainform::on_actionlogin_triggered(void)"    (?on_actionlogin_triggered@mainform@@aaexxz) c:\working\projlocation\test\mainform.obj   test 

lnk2005 related error messages:

- error 12 error lnk2005: __set_invalid_parameter_handler defined in libcmtd.lib(invarg.obj) c:\working\projlocation\test\libcmt.lib(invarg.obj) test  <more libcmt & libcmtd related errors…..>  - error 17 error lnk2005: “void __cdecl _invalid_parameter(unsigned short const *,unsigned short const *,unsigned short const *,unsigned int,unsigned int)” (?_invalid_parameter@@yaxpbg00ii@z) defined in libcmtd.lib(invarg.obj) c:\working\projlocation\test\libcmt.lib(invarg.obj) test 

the default qt project's properties created vs add-in changed, after re-compiled qt source.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -