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

  • Home
  • SEARCH
  • 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 1098145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:32:10+00:00 2026-05-17T00:32:10+00:00

In Microsoft Visual Studio 2010, I use the wizard to create a solution with

  • 0

In Microsoft Visual Studio 2010, I use the wizard to create a solution with two projects:
– theapp: a C++ Win32 console app, and
– thelib: a C++ static library

I add an h-file and a cpp-file to the library and write a do-nothing function in thelib.
In main(), I call thefunc().

In project/dependencies theapp is set to depend on thelib.

To my surprise, the solution does not link: the linker does not find thefunc().

In previous versions of Visual Studio, the dependency automagically caused theapp
to be linked with thelib, but it seems it is no longer the case in 2010.

Am I doing something wrong?
What is the ‘right’ way to automagically achieve the desired linkage in 2010?

  • 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-05-17T00:32:10+00:00Added an answer on May 17, 2026 at 12:32 am

    Yes, this is done differently now. They call it a “project-to-project dependency”. Not actually sure what that means. Right-click the EXE project, Properties, Common Properties, Framework and References. Click the Add New Reference button and select your .lib project.

    The “Link Library Dependencies” should be set to True, it is by default. You no longer have to use the old “Project Dependencies” dialog anymore, it sorts out the build order from the new step.

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

Sidebar

Related Questions

I use Microsoft Visual Studio 2010 Professional (I installed all components). Here is what
I have a Visual Studio 2010 .NET 4 solution with C# projects and a
Question from certification exam: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework
I'm pretty new to CUDA. I use Microsoft Visual Studio 2010 where I don't
I use msbuild to compile a Visual Studio 2010 solution and need a successful
Using Microsoft Visual Studio 2010: Can I write this type of macro in C?
My environment: Microsoft Visual Studio 2010 C# I've read many articles and comments about,
Platform used : Microsoft Visual Studio 2010 (C#) Database : SQL Server 2008 R2
Using: Microsoft SQL Server 2008 Microsoft Visual Studio 2010 C# .NET 4.0 WinForms Ok
When I remove microsoft visual stuido 2008 and upgrade to 2010, I notice two

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.