简体   繁体   中英

Compile 32 bit VS 2003 project to 64 bit

I currently have a 32 bit dll that was created with Visual Studio 2003 in C++ using Managed Extensions . I'm now trying to compile a 64 bit version without having to upgrade to C++/CLI. I've been following the tutorial at this location . I'm getting the following error:

fatal error C1197: cannot reference 'c:\\windows\\microsoft.net\\framework\\v1.1.4322\\mscorlib.dll' as the progam has already referenced 'c:\\windows\\microsoft.net\\framework\\v2.0.50727\\mscorlib.dll'

I can't figure out what is referencing the .NET 2.0 version of the dll.

Do you manually call the .dll file in the code? Like in this?

#using "C:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll

If so, you can change this line to just:

#using "mscorlib.dll"

Are you including a library that links to a different version of mscorlib?

Are you specifying both the /clr option and doing a #using "mscorlib.dll" ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM