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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:49:00+00:00 2026-06-07T20:49:00+00:00

Still suffering through a major compile as detailed over here , but I have

  • 0

Still suffering through a major compile as detailed over here, but I have a specific side question about the use of /NODEFAULTLIB.

I’ve been trying to use this /NODEFAULTLIB:LIBCMTD switch in order to resolve a linker problem where one of the projects in the solution is using /MTd (LIBCMTD.LIB) instead of /MDd MSVCR90D.DLL.

Unfortunately, as you can probably guess by the title of this post, I don’t seem to be using this correctly. Upon building the solution, I see this warning in three places:


1>cl : Command line warning D9002 : ignoring unknown option '/NODEFAULTLIB:LIBCMTD'

I’m running Visual Studio 2008 Standard SP1 on Windows XP Professional SP3. I’m adding this switch by right-clicking on the troublesome project, selecting properties, expanding the “Configuration Properties”, expanding the C/C++ list, selecting “Command Line”, and entering /NODEFAULTLIB:LIBCMTD in the “Additional options” field.

I was reading elsewhere on the web that this should be a linker setting, and not a C/C++ setting, so I’ve also tried entering it under Configuration Properties->Build Events->Pre-Link Event->Command Line, though this gave me warnings of its own without yielding any different results from the compile:


1>The filename, directory name, or volume label syntax is incorrect.
1>Project : error PRJ0019: A tool returned an error code from "Performing Pre-Link Event..."

So folks… what about the /NODEFAULTLIB switch am I not understanding here? How can I get VS2008 to recognize the command and stop ignoring it?

Thanks,
-Alex

  • 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-07T20:49:02+00:00Added an answer on June 7, 2026 at 8:49 pm

    In project properties you will find: Configuration Properties -> Linker -> Input ->

     'Ignore All Default Libraries'
     'Ignore Specific Default Libraries' <-- this is I suppose of interest for you
    

    you can try putting libc;libcmtd;libcd in there but I never tried it, compiling all libs under the same configuration is the proper way

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

Sidebar

Related Questions

Still an iphone dev starter but trying. I would like to have the user
This question has been asked more than once before, but I have not found
I'm trying to get the following line to compile, but i'm suffering from pointer
Still working through JQuery to get data and repopulate portions of a page. Right
still new to XML parsing with the iphone so i have a few questions.
Still learning Objective-C / iPhone SDK here. I think I know why this wasn't
Still working on lisp recipes and idioms. I have a list like this: ((a
i have a java applet application in which i use rich text area .
I've looked at similar questions about caching in PHP and I'm still stumped as
Hi i'm new android. i'm working through the samples and have an error when

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.