views:

797

answers:

2

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.

+1  A: 

Hi,

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"
UberJumper
It happens regardless whether I specify the full path, '#using "mscorlib.dll"', '#using <mscorlib.dll>' or omit completely.
Richard Nienaber
A: 

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" ?

Brian R. Bondy