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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:09:54+00:00 2026-06-14T01:09:54+00:00

I’ve got a Visual Studio project. It’s fairly simple, and it works. However, we’re

  • 0

I’ve got a Visual Studio project. It’s fairly simple, and it works. However, we’re in the process of porting our code to 64-bit. I’ve got this simple project compiling, but it fails to link:

fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

That tells me it’s trying to link the wrong version of the library. It should be linking the 64-bit library, but it’s trying to link the 32-bit library. That’s obviously wrong.

My problem is that I cannot figure out where my project is deciding to link that library. I’ve looked at:

  • Project Properties, props files. Nowhere is a lib name specified, although the lib path is specified.
  • Project Properties -> Linker -> Command Line. Not there either.
  • I’ve looked through the header files for some kind of a #pragma comment(lib, ), but I cannot find any use of that.

Where else can I look? Is there a way to have Visual Studio tell me how it is deciding to link in different libraries?

Not sure if it’s relevant, but this is a small unit test project, using CppUnit. It’s linking cppunit-vc100-MTd.lib when it should be linking cppunit-vc100-x64-MTd.lib

  • 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-14T01:09:55+00:00Added an answer on June 14, 2026 at 1:09 am

    On your projects property page, under Linker, General, set the project link progress reporting to whatever you need to display the libraries being hit. /VERBOSE or /VERBOSE:lib will likely do what you want.

    Example output of what shows up in the Output window with /VERBOSE:lib

    1>  Searching libraries
    1>      Searching D:\winsdk\lib\kernel32.lib:
    1>      Searching D:\winsdk\lib\user32.lib:
    1>      Searching D:\winsdk\lib\gdi32.lib:
    1>      Searching D:\winsdk\lib\winspool.lib:
    1>      Searching D:\winsdk\lib\comdlg32.lib:
    1>      Searching D:\winsdk\lib\advapi32.lib:
    1>      Searching D:\winsdk\lib\shell32.lib:
    1>      Searching D:\winsdk\lib\ole32.lib:
    1>      Searching D:\winsdk\lib\oleaut32.lib:
    1>      Searching D:\winsdk\lib\uuid.lib:
    1>      Searching D:\winsdk\lib\odbc32.lib:
    1>      Searching D:\winsdk\lib\odbccp32.lib:
    

    etc..

    Also, you may have a header file in your source tree that is bringing the file in via a

    #pragma comment (lib, "cppunit-vc100-MTd.lib")
    

    but that should be easy enough to search by Find In Files hitting your Include Path, which is one of the canned options in the Find in Files configuration.

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

Sidebar

Related Questions

I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
this is what i have right now Drawing an RSS feed into the php,

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.