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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:45:40+00:00 2026-06-11T16:45:40+00:00

I recently inherited a project which I’ve cleaned up and finished. However, there is

  • 0

I recently inherited a project which I’ve cleaned up and finished. However, there is one annoying issue that is just bugging the heck out of me. Whenever I build it, it creates a static library (*.lib + *.exp files) alongside the *.exe. The *.lib file is unnecessary. I can’t for the life of me find where in the settings to turn this off. It doesn’t hurt anything to build it, it’s just annoying.

  • 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-11T16:45:41+00:00Added an answer on June 11, 2026 at 4:45 pm

    I had the same problem, and since I’m a very pedantic person, I mind. So I used

    dumpbin /EXPORTS the_naughty_file.lib
    

    On the unwanted .lib file, and it reveals:

    Microsoft (R) COFF/PE Dumper Version 9.00.21022.08
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    Dump of file E:\my-projects\Robotics\SLAM_plus_plus\bin\Release\SLAM_plus_plus6.lib
    
    File Type: LIBRARY
    
         Exports
    
           ordinal    name
    
                      ??4_Init_locks@std@@QAEAAV01@ABV01@@Z (public: class std::_Init_locks & __thiscall std::_Init_locks::operator=(class std::_Init_locks const &))
    
      Summary
    
          DB .debug$S
          14 .idata$2
          14 .idata$3
           4 .idata$4
           4 .idata$5
          14 .idata$6
    

    And after a while of googling, I found a post, explaining this is an automatically generated function, which is only generated when using dynamically-linked runtime library (static doesn’t do that).

    To fix the problem, either go to Project Properties > C ++ > Preprocessor, and add:

    _STATIC_CPPLIB
    

    Or go to Project Properties > C ++ > Code Generation and change Runtime Library to Multithreaded (MT).

    The annoying files are now gone, yay :). Tested in Visual Studio 2008, though. But if it doesn’t work, just use dumpbin /EXPORTS on the .lib to trace exports and post them here.

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

Sidebar

Related Questions

I've inherited a project at work recently that was written by one of our
I have inherited a WiX project from a contractor that recently left. When I
I recently inherated a project that has plupload embeded in it. However I am
I recently inherited a Silverlight web project that uses WCF services to handle asynchronous
I recently inherited an ASP.NET project from another programmer that required consolidating two databases.
I recently inherited a VB6 project. It is pretty involved and my issue is
I recently inherited a project that is using Spring SAML 2.0 but the code
I recently inherited a project where a sqlite db is stored on the users
I've recently inherited a web project from a workmate who left to join another
I recently inherited a Ubuntu Hardy box that acts rather funky out-of-the-box. The first

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.