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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:10:56+00:00 2026-06-14T12:10:56+00:00

I recently upgrade to 2012 from 2005 (I’m pretty sure) and ran into link

  • 0

I recently upgrade to 2012 from 2005 (I’m pretty sure) and ran into link errors when building my solution. I ran out of ideas after hours of searching google and putsing around. I’ve set up dozens of projects, so I’m pretty certain I’ve done everything right, but to be fair, it’s been a few years.

So, as a test I set up a new project. I called it App, a Windows application (.exe). I created a second project called Core and flagged it as a static library (.lib) in it’s Configuration Type. Both are a part of the solution. In Core I added Test.cpp and Test.h which contain a small class that has a simple function in it. Then, inside the Window’s applications WinMain.cpp file I have WinMain() where I call into this test class via CTest test; test.Result();

Along with this I’ve set the project App’s Project Dependencies to be Core and finally added to App’s Additional Include Directories the path to the Core code where Test.cpp/.h live.

I get the following link errors and cannot for the life of me figure out why. Does anyone know what step I may have missed or what changed in 2012 from previous versions? Thank you very very much in advance for the help!

1>------ Build started: Project: App, Configuration: Debug Win32 ------
1>WinMain.obj : error LNK2019: unresolved external symbol "public: __thiscall CTest::CTest(void)" (??0CTest@@QAE@XZ) referenced in function _WinMain@16
1>WinMain.obj : error LNK2019: unresolved external symbol "public: __thiscall CTest::~CTest(void)" (??1CTest@@QAE@XZ) referenced in function _WinMain@16
1>WinMain.obj : error LNK2019: unresolved external symbol "public: int __thiscall CTest::Result(void)" (?Result@CTest@@QAEHXZ) referenced in function _WinMain@16
1>D:\Work\Test_Linker_Stupidity\App\Debug\App.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ========
  • 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-14T12:10:57+00:00Added an answer on June 14, 2026 at 12:10 pm

    Visual Studio 2005 did some magic with project dependencies where it would automatically link in any .lib outputs (I unfortunately was the developer that helped implement it). This appears to have been removed since, I suspect, Visual Studio 2010 when the old Visual C++ build system was replaced with MSBuild.

    However, the “automatic linking of static library dependencies” feature can still be found via project references:

    • Right click on the App project and select “References…”
    • Click “Add New Reference”.
    • Check the static library project and press OK.
    • Build.

    You should now see the static library being automatically linked in. Note that project references also imply a project dependency.

    If you prefer to use a project dependency instead, you’ll need to add the static library to the linker’s additional dependencies property on the “App” project, like you would for any other static library input.

    Edit: also, you’ll see a property called “Link Library Dependencies” on the project reference. This controls whether or not the .lib output of the referenced project gets linked in or not (defaults to true).

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

Sidebar

Related Questions

Recently upgrade a MFC++ Project which includes .NET assemblies from Visual Studio 2005 to
I have recently attempted to upgrade a solution from VS2010 to VS2012, and as
I recently upgrade Django from v1.3.1 to v1.4. In my old settings.py I have
I've recently upgraded to Komodo Edit 7 from 6.1, and while the upgrade has
I recently did an upgrade of an aging app to 0.4.7 from 0.2.6. The
I recently did a migration upgrade from TFS2005 to TFS2010. Everything works, but the
I recently performed a migration-upgrade from TFS 2008 to TFS 2010. Almost everything is
I recently upgrade a Joomla! installation from 1.5 to 1.7 with a large dataset
I have recently upgraded from VS2012 RC to RTM, and since the upgrade to
Referring to the plugin: http://malsup.com/jquery/form/#getting-started I've recently tried to upgrade from old v2.28 to

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.