I’m creating a mixed mode C++ assembly. The assembly contains pointers to C++ unmanaged types and all the classes are C++/CLI types.
I have the option /clr on. However, whenever I build the DLL I get the warning:
warning LNK4044: unrecognized option '/clr'; ignored
This warning doesn’t make sense to me as if I turned the /clr off it obviously could not be compiled as native c++ code. So how can the /clr option be unrecognized and ignored?
/clris a compiler flag, not a linker flag. (The fact that you’re getting aLNK????error indicates that you’re attempting to pass this flag to the linker.)