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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:43:11+00:00 2026-06-01T03:43:11+00:00

Being a long-time POSIX/Linux/BSD C developer and now trying to do a few things

  • 0

Being a long-time POSIX/Linux/BSD C developer and now trying to do a few things with Visual C++ 2010, I’m kind of fumbling around with the tooling because it doesn’t quite work the same as the GCC toolset does. In theory, at least according to the docs, it seems very similar (and I’m sure it is), but I’m not seeing the things I’m expecting to see.

In this case, I’m trying to build a C library for later use in a .NET project, and I want to be careful to avoid runtime conflicts later on. My thought was to build a static library, linked against a DLL version of the C runtime (msvcr100d.dll in the Debug config) so I set the /MDd flag. However, when I use dumpbin.exe to inspect the resulting .lib output, it shows no dependents or imports.

Two questions, really:

  1. Is this a bad idea in the first place? Should I be building a DLL or linking against the static CRT instead?
  2. Why doesn’t dumpbin.exe show the dependency on the CRT when I use /MDd?

Update: Choosing the Correct C/C++ Runtime Library is pretty helpful and informative. I tried the dumpbin incantation he suggests, and the output shows that the lib does link to msvcrtd as expected, but that doesn’t really answer my second question above.

  • 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-01T03:43:12+00:00Added an answer on June 1, 2026 at 3:43 am

    Because this is not a final EXE or DLL there is no import section. Instead, there are linker directives that say how this lib would like to be linked.

    dumpbin /directives thoraway.lib
    
    Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    
      Dump of file throwaway.lib
    
      File Type: LIBRARY
    
      Linker Directives
      -----------------
      /FAILIFMISMATCH:"_MSC_VER=1600"
      /FAILIFMISMATCH:"_ITERATOR_DEBUG_LEVEL=2"
      /DEFAULTLIB:"msvcprtd"
      /DEFAULTLIB:"MSVCRTD"
      /DEFAULTLIB:"OLDNAMES"
      /EDITANDCONTINUE
    
     Summary
    
         CFC .debug$S
          4C .debug$T
          A2 .drectve
           B .rdata
           4 .rtc$IMZ
           4 .rtc$TMZ
          49 .text
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been experimenting with Adobe Flex recently. Being a long-time server-side web app developer,
Hai guys, I had this doubt for a long time now. Now being a
I have been trying to make this work for a long time now. In
Google is not being my friend - it's been a long time since my
This is a problem I've had on my mind for a long time. Being
Being a C# developer since version 1.0, F# has captured my free time for
So I've been playing around with MySQL lately, and being a long time MSSQL
I am being struggling with this regex expression long time but i cannot find
I've been test-infected for a long time now, but it would seem the majority
I've been using Visual Studio for a long time and the constant shuffling of

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.