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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:06:04+00:00 2026-06-03T08:06:04+00:00

To make a short story even shorter, I compiled the gperf2.0 project, and added

  • 0

To make a short story even shorter, I compiled the gperf2.0 project, and added the output to another project, in a “lib\Release” and “lib\Debug” folder.
Then, I added the libtcmalloc_minimal.lib file to the linker input for the release configuration, and libtcmalloc_minimal-debug.lib for the debug configuration, with the Additional Library Folders set to: $(ProjectDir)lib\Release for Release, and $(ProjectDir)lib\Debug for Debug.
I also added a post build event: copy “$(ProjectDir)lib\Release*.” “$(TargetDir)” for Release and copy “$(ProjectDir)lib\Debug.*” “$(TargetDir)” for Debug.

The problem?

Error 3 fatal error LNK1181: cannot open input file ‘..\lib\Debug\libtcmalloc_minimal-debug.lib’ Framework Framework

And it gives me that when I build the project in Release config. Why would it use the debug lib? I triple checked the command line output, and it uses the correct folder. So what gives? (/LIBPATH:”g:\licenta\Framework-transfer_RO-03may-94b4df\Framework\Framework\lib\Release”)

EDIT

I should also add that the compilation was successful, on another PC, where I added the lib path manually, without the use of $ keywords. However, on this PC, even with the lib file compiled on it, it gives me that linker error. I hate the linker.

EDIT 2

I should also mention that the the lib file is an import library for a dll. The dll was compiled on both PC’s.

EDIT 3

Even with the lib path added manually, it doesn’t work. I’ve been tryin to figure out this problem for an hour, and it’s annoying. I really hate the linker.

EDIT 4

I have removed every reference to that lib file, including the header, dll, anything. It still gives me this:

Error 3 fatal error LNK1181: cannot open input file ‘..\lib\Debug\libtcmalloc_minimal-debug.lib’ Framework Framework

What.The.

  • 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-03T08:06:05+00:00Added an answer on June 3, 2026 at 8:06 am

    Don’t use the Linker project properties to try to solve this problem. Instead, add the library directly to the project by right-clicking on the project name in the Solution Explorer window, choosing “Add Existing Item”, and using the file browser to select the .lib file you want.

    It’s a little more complicated since you want to have both the Debug and Release versions of the library. To solve this, add both libtcmalloc_minimal.lib and libtcmalloc_minimal-debug.lib to the project using the method I described. Then:

    1. Right-click on libtcmalloc_minimal.lib (in the Solution Explorer window), choose Properties, set the Configuration to “Debug” and set “Excluded From Build” to YES. Click OK.
    2. Do the same thing with libtcmalloc_minimal-debug.lib, only this time you have the “Release” configuration as the one with “Excluded From Build” = YES.

    (So the Release libtcmalloc is excluded in the Debug version, and the Debug libtcmalloc is excluded in the Release version. Otherwise it would try to link both libraries at the same time.)

    Visual Studio knows that if a .lib file is listed in the project files, it should be passed to the linker with the correct relative path. It also knows not to bother with any files in the project that have “Excluded From Build” set for the current configuration (Debug or Release).

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

Sidebar

Related Questions

To make a very long story short… This is in a large WPF project
To make story short, i'm building self-learning banner management system. Users will be able
Short story: I can't make precompiled headers work properly with gcc -c option. Long
So to make a long story short, I've been working on a web app
So to make a long story short. A professor asked this question in class
I using a web services to get the value, make the long story short.
To not make a short story long, my teacher makes us use a MASM.EXE
Short story: I want to make slight changes to the behavior of a MainClass,
To make a long story short, it looks as if I am going to
To make a long story short I have to use processing in a class

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.