Hi, Carl.
I've added msvcrt to both debug and release builds and now everything
works fine. Thanks you.
However, I haven't understood what you meant by: "IIRC, for managed
apps you need to use the DLL runtime library (MSVCR70.DLL)" ?
Thanks, again...
"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam > wrote in message news:<Oy**************@TK2MSFTNGP12.phx.gbl>...
| ov wrote: Hi,
Need some help here.
I have a .NET class library in C++ (with CLR).
In this project I have a class with the __nogc keyword. When I use the
new operator within this class's code I receive:
error LNK2001: unresolved external symbol "void * __cdecl operator
new(unsigned int)" (??2@$$FYAPAXI@Z)
I think I should be able to use unmanaged runtime's new operator from
a .NET project, but I must be doing something wrong. Any ideas ?
BTW: I've referenced mscorlib
Make you're linking against a version of the CRT. IIRC, for managed apps
you need to use the DLL runtime library (MSVCR70.DLL). You may need to
explicitly add msvcrt.lib to the linker settings.
-cd