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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:14:53+00:00 2026-05-16T17:14:53+00:00

Today I fired up Visual Studio 2010 (Visual C++) and started working on a

  • 0

Today I fired up Visual Studio 2010 (Visual C++) and started working on a project. The solution contains two projects. One is a static library I am writing, the other is a test application containing unit tests for the library.

Without changing anything from yesterday, the executable no longer links:

LINK : fatal error LNK1104: cannot open file 'mylib.lib'

The static library compiles and links fine. I have not changed the project settings in around a week, and it was linking just fine yesterday.

If I go into the executable project’s settings and add a library directory for $(SolutionDir)\debug, I instead get the following link error:

LINK : fatal error LNK1104: cannot open file 'kernel32.lib'

I am not sure what the problem is. I have tried cleaning, rebuilding, and even rebooting my machine. Google turned up some bugs in ancient Visual C++ versions (but I’m using 2010), as well as the possibility that the program is already running. However, it is not running, and a reboot confirms this.

What would cause the linker not to find core libraries such as kernel32.lib, or for that matter, the output directory for my solution?

This is old-fashioned C++, a cross-platform library, not that managed stuff Microsoft added.

  • 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-16T17:14:54+00:00Added an answer on May 16, 2026 at 5:14 pm

    I had to check “Inherit from parent or project defaults” in the “Library Directories” dialog. Once I did that, the linker could find all the necessary libraries. I still had to include $(SolutionDir)\debug though.

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

Sidebar

Related Questions

Today Microsoft released Windows 8 Release Preview and visual studio 2012 rc. I'm a
Today, on EFNet C++ Wiki in article heap corruption , I found two pieces
Hi I have been working on this code today after attempting some of the
I'm fairly new to Android and today I fired it up and found a
I am working with ExtJS 4.1 RC3 - following the MVC pattern. Today was
I have just started playing with the ASP.Net MVC framework, and today I created
DateTime.Today is static readonly . So supposedly it should never change once (statically) instantiated.
I decided to try project euler problem 17 today, and I quickly wrote a
Today, I was working on a Minecraft mod in Eclipse, and my computer had
Since today I've started getting errors when I try to delete IndexedDB database in

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.