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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:36:56+00:00 2026-05-15T06:36:56+00:00

My compile environment is windows xp and vc 6.0. Now I have a c

  • 0

My compile environment is windows xp and vc 6.0.

Now I have a c source file(msgRout.c), def file(msgRout.def), link file(msgRout.link), then I use commands below to get a 32 bit dll:

1.cl /I ../include -c -W3 -Gs- -Z7 -Od -nologo -LD -D_X86_=1 -DWIN32 -D_WIN32 -D_MT -D_DLL msgRout.c

2.lib -out:msgRout.lib -def:msgRout.def -machine:i386

3.link /LIBPATH:../../Lib -nod -nologo -debug:full -dll @msgRout.link -out:msgRout.dll

But the dll I got cannot be loaded on X64 application. it required a 64 bit dll.

So here is my question:
Can I get a 64 bit dll with vc 6.0?
Using only above 3 commands alike, how can I get 64 bit dll?

Many GREAT THANKS!!!

Allan

  • 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-15T06:36:57+00:00Added an answer on May 15, 2026 at 6:36 am

    Visual C++ 6.0 does not include 64-bit compiler/libraries. You will need either a more recent version of Visual C++ or a Windows Platform SDK that has the 64-bit support. The earliest one is the Windows Server 2003 Platform SDK.

    Once you have that installed, cl /? and link /? will have info on how to build 64-bit apps.

    Update: If you have VS2005, you can build 64-bit binaries with the x86-amd64 cross-compiler (a 32-bit cl.exe that produces 64-bit code) or with the x64 compiler (a 64-bit cl.exe). To do that, you need to:

    • Make sure you’ve installed the 64-bit tools support during VS installation.
    • Open a command line and set it for x86-amd64 builds using C:\Program Files\Microsoft Visual Studio 8\VC\Vcvarsall.bat x86_amd64 or
    • (on 64-bit Windows) Open an x64 command line and set it for 64-bit builds using C:\Program Files\Microsoft Visual Studio 8\VC\Vcvarsall.bat amd64.

    Once you do that, you should be able to use the same command line as above (with tcouple small changes – for cl you’ll have to define /D:X64=1 or /D_AMD64_ and for link you’ll have to change the /machine:x86 to /machine:x64) to produce 64-bit version of your program.

    Here are some links with more information:

    Installing Visual Studio 64-bit Components
    HowTo: Enable a 64-Bit Visual C++ Toolset at the Command Line
    Use Visual Studio to build 64-bit application
    64-bit Applications
    Seven Steps of Migrating a Program to a 64-bit System

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

Sidebar

Related Questions

I have downloaded MinGW-64, so I can now compile 64-bit programs for Windows 7,
I'm attempting to use SCons to compile and link a simple Windows program. I
I am trying to set up a programming environment to compile Windows executables and
I am very new to the Xcode environment. I would like to compile some
For running testcases etc. I would like to compile parts of our buildroot environment
I have a piece of C++ code (compiled with g++ under a GNU/Linux environment)
I compile my file with javac myfile.java But when I run myfile.class file with
I am trying to compile 2 shared libraries in the same mk file. The
When I try to run my ASP.NET app from my development environment I get
I've got Windows 7 64-bit and I just installed Qt (open-source, version 2010.04) and

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.