D
Droopy
Hi,
I wrote a C# program that is calling C++ legacy code.
I wrote a C++ managed wrapper for this legacy code.
It seems to work well.
In Debug mode, I had a linker error LNK4210 that I solved using the MSDN
article #814472.
But in Release mode, I have following errors :
with /MD parameter :
3 errors LNK2001 ("__argc", "__argv", "__mbctype")
4 errors LNK2005 ("delete" + "new") for msvcrt.lib (MSVCC71.dll)
1 error LNK2019 __mbctype referenced in function "void __stdcall
_AfxAbbreviateName ..."
with /MT parameter :
2 errors LNK2005 for libcmt.lib (typinfo.obj)
10 errors LNK2005 for msvcrt.lib (MSVCC71.dll)
4 errors LNK2005 for msvcrt.lib (cinitexe.obj)
1 error LNK2019
What linker options do I have to set ?
Thanks in advance for your help.
Droopy.
I wrote a C# program that is calling C++ legacy code.
I wrote a C++ managed wrapper for this legacy code.
It seems to work well.
In Debug mode, I had a linker error LNK4210 that I solved using the MSDN
article #814472.
But in Release mode, I have following errors :
with /MD parameter :
3 errors LNK2001 ("__argc", "__argv", "__mbctype")
4 errors LNK2005 ("delete" + "new") for msvcrt.lib (MSVCC71.dll)
1 error LNK2019 __mbctype referenced in function "void __stdcall
_AfxAbbreviateName ..."
with /MT parameter :
2 errors LNK2005 for libcmt.lib (typinfo.obj)
10 errors LNK2005 for msvcrt.lib (MSVCC71.dll)
4 errors LNK2005 for msvcrt.lib (cinitexe.obj)
1 error LNK2019
What linker options do I have to set ?
Thanks in advance for your help.
Droopy.