How to get a 64 bit dll with c source file, def file, link file by using command line in vc 6.0

Posted by allan on Stack Overflow See other posts from Stack Overflow or by allan
Published on 2010-06-11T03:41:33Z Indexed on 2010/06/11 3:52 UTC
Read the original article Hit count: 321

Filed under:

Hi, all

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

© Stack Overflow or respective owner

Related posts about vc++