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 154401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:58:20+00:00 2026-05-11T09:58:20+00:00

I have a solution with multiple projects. I have a main project, which acts

  • 0

I have a solution with multiple projects. I have a ‘main’ project, which acts as a menu and from there, the user can access any of the other projects. On this main project, I get linker errors for every function called. How do I avoid these linker errors? I set the project dependencies already in the ‘Project Dependencies…’ dialog.

Thanks

EDIT — I did as suggested and added the output folder to the linker’s additional directories. Now, however, I get a million errors as follows:

3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: void __thiscall std::basic_ios >::setstate(int,bool)' (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: int __thiscall std::ios_base::width(int)' (?width@ios_base@std@@QAEHH@Z) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: int __thiscall std::basic_streambuf >::sputn(char const *,int)' (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: static bool __cdecl std::char_traits::eq_int_type(int const &,int const &)' (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: static int __cdecl std::char_traits::eof(void)' (?eof@?$char_traits@D@std@@SAHXZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: int __thiscall std::basic_streambuf >::sputc(char)' (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: class std::basic_streambuf > * __thiscall std::basic_ios >::rdbuf(void)const ' (?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: char __thiscall std::basic_ios >::fill(void)const ' (?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: int __thiscall std::ios_base::flags(void)const ' (?flags@ios_base@std@@QBEHXZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: int __thiscall std::ios_base::width(void)const ' (?width@ios_base@std@@QBEHXZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: static unsigned int __cdecl std::char_traits::length(char const *)' (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: class std::basic_ostream > & __thiscall std::basic_ostream >::flush(void)' (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: class std::basic_ostream > * __thiscall std::basic_ios >::tie(void)const ' (?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: bool __thiscall std::ios_base::good(void)const ' (?good@ios_base@std@@QBE_NXZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: void __thiscall std::basic_ostream >::_Osfx(void)' (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: void __thiscall std::basic_streambuf >::_Lock(void)' (?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: void __thiscall std::basic_streambuf >::_Unlock(void)' (?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in panels.lib(panel_main.obj) 3>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: 'public: class std::locale::facet * __thiscall std::locale::facet::_Decref(void)' (?_Decref@facet@locale@std@@QAEPAV123@XZ) already defined in panels.lib(panel_main.obj) 3>libcpmtd.lib(ios.obj) : error LNK2005: 'private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)' (?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP90D.dll) 3>libcpmtd.lib(ios.obj) : error LNK2005: 'public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)' (?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP90D.dll) 3>libcpmtd.lib(locale0.obj) : error LNK2005: 'void __cdecl _AtModuleExit(void (__cdecl*)(void))' (?_AtModuleExit@@YAXP6AXXZ@Z) already defined in msvcprtd.lib(locale0_implib.obj) 3>libcpmtd.lib(locale0.obj) : error LNK2005: __Fac_tidy already defined in msvcprtd.lib(locale0_implib.obj) 3>libcpmtd.lib(locale0.obj) : error LNK2005: 'private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)' (?facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in msvcprtd.lib(locale0_implib.obj) 3>libcpmtd.lib(locale0.obj) : error LNK2005: 'private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)' (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP90D.dll) 3>libcpmtd.lib(locale0.obj) : error LNK2005: 'private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)' (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP90D.dll) 3>libcpmtd.lib(locale0.obj) : error LNK2005: 'public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_string,class std::allocator > const &)' (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) already defined in msvcprtd.lib(MSVCP90D.dll) 3>libcpmtd.lib(locale0.obj) : error LNK2005: 'public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)' (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP90D.dll) 3>libcpmtd.lib(xlock.obj) : error LNK2005: 'public: __thiscall std::_Lockit::_Lockit(int)' (??0_Lockit@std@@QAE@H@Z) already defined in msvcprtd.lib(MSVCP90D.dll) 3>libcpmtd.lib(xlock.obj) : error LNK2005: 'public: __thiscall std::_Lockit::~_Lockit(void)' (??1_Lockit@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP90D.dll) 
  • 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. 2026-05-11T09:58:21+00:00Added an answer on May 11, 2026 at 9:58 am

    Without knowing any other detail about your solution it is hard to tell, however Rebuild All, might be helpful. This situation can sometimes occur when there are mixed object files for different architectures.

    You might also want to consider using ‘References’ instead of ‘Dependencies’

    EDIT:

    After what you have posted it seems that your linkage to standard libraries is inconsistent. Could it be that one of the project links standard libraries statically while others dynamically? (See project properties->linker) Or one to the release runtime, while others to debug? (though the last one should be possible, with caveats)

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

Sidebar

Ask A Question

Stats

  • Questions 103k
  • Answers 103k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There is no simple method for this for sure. Edit:… May 11, 2026 at 8:24 pm
  • Editorial Team
    Editorial Team added an answer The only way i have found around this is to… May 11, 2026 at 8:24 pm
  • Editorial Team
    Editorial Team added an answer Edit I have made a solution that uses ctypes (which… May 11, 2026 at 8:24 pm

Related Questions

I have a solution with multiple projects and we need to do some serious
I have a solution with multiple projects. In each project I've added a .config
What is the best VS solution setup for DotNetNuke 4.8 inter-module communication development? I
I have a solution with 10 or so projects in it, and have started

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.