tags:

views:

481

answers:

1

I have native unmanaged code. I have created a managed C++ DLL and try to include this DLL into native unmanaged code. I got the following error

fatal error LNK1302: only support linking safe .netmodules; unable to link ijw/native .netmodule

How can I include managed C++/CLR DLL into native unmanaged code?

A: 

Look here:

http://msdn.microsoft.com/en-us/library/9x035d1s%28VS.80%29.aspx

"To correct this error, compile with /clr:safe to enable MSIL linking, or pass the /clr or /clr:pure .obj file to the linker instead of the module."

e.tadeu