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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:54:44+00:00 2026-05-30T18:54:44+00:00

I am trying to compile an application that contains CUDA code. I have a

  • 0

I am trying to compile an application that contains CUDA code. I have a 64 bit machine running Windows 7 and have visual c++ 2008 express version (the free version). To be able to use the cuda compiler I followed the steps from here. The cuda files (with *.cu extension) now compile fine, but the other normal C++ files are using 32 bit because at the drop box on the top (configuration manager) of IDE, it says Win32, So I get this error.

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

Note that in the IDE I properly set the target machine for the linker to MachineX64 (Properties->Configuration Properties->Linker->Advanced->Target Machine). However, looking at the command line, it is something like this.

/OUT:"C:\Users\jan\Desktop\gpu\Release\gpu.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\CUDA\lib64" /LIBPATH:"../../common/lib" /MANIFEST /MANIFESTFILE:"Release\gpu.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\jan\Desktop\gpu\Release\gpu.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ERRORREPORT:PROMPT cudart.lib   C:\CUDA\lib64\cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

Notice, 32 bit version of runtime libraries are being passed to the command line. How can I ask the freaking compiler to use 64 bit. Is this related to the configuration manager. People told me to go to the configuration manager and select new on the active solution platform dropdown and select x64 from there. But the type or select new platform dropdown is blank. Please help me. I’m going nuts over this. And note that I have all 64 bit compilation tools in my computer, as I installed the full Windows SDK.

  • 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-05-30T18:54:45+00:00Added an answer on May 30, 2026 at 6:54 pm

    Follow the steps given on this site.

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

Sidebar

Related Questions

Background : I have a C# Windows Forms application that contains a Windows service
Possible Duplicate: How to compile a 64-bit application using Visual C++ 2010 Express? How
When trying to compile a file that include winnt.h via windows.h, I get the
When trying to compile the following code, I am getting a warning that line
I have started initially with VC++ 2008 Express. I've noticed that GCC becomes kind
I am trying to compile an 32 bit application. I am aware of problems
I compile my application on a windows XP SP3 machine. When it compiles, I
I have been trying to compile the application.sass in my Sencha Touch project into
I'm trying to compile my project from an external application that generates two versions
I'm trying to use a CMake script to compile a Boost-based application on Windows.

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.