Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8059109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:34:09+00:00 2026-06-05T09:34:09+00:00

I had successfully compiled a static version of qt4.8.2 by following the instructions from

  • 0

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

However, I encountered a list of errors when compile my project, they are LNK2019 & LNK2005 related.

I attached the error messages at the bottom.

For the LNK2005 related errors , I included LIBCMT at Linker->Input->Ignore Specific Default Libraries, and its related errors disappear from the error list, but is that the right way to do it?

For the LNK2019 related errors, I couldn’t resolve them, please give me some instructions.

Here is my project settings:

C/C++ -> Code Generation -> Runtime Library: Multi-threaded Debug (/MTd)

C/C++ -> Language -> Treat WChar_t As 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 already 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) already defined in LIBCMTD.lib(invarg.obj) C:\Working\ProjLocation\test\LIBCMT.lib(invarg.obj) test
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:34:10+00:00Added an answer on June 5, 2026 at 9:34 am

    The default Qt project’s properties created by the vs add-in was changed, after I re-compiled the Qt source.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Huawei Ascend G300-U8818 comes with android 2.3.6 os version. I had successfully compiled the
I had download and compiled the source code from GIT, and also successfully runs
I am creating a widget and had successfully created it, what I want to
I had an old mysql code where it successfully inserted values into the database.
i had installed the gem carmen successfully and also include it in my gem
I had started working on GPGPU some days ago and successfully implemented cholesky factorization
Had to download Command Line Tools from Apple to get make to work, but
Had received a module from CCAVENUE and it was working fine with Magento 1.6.2...
I had made Spring MVC and Hibernate application by taking reference from here on
(Why I am trying to do this: I have had no luck in using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.