Possible Duplicate:Compiling C Code for .NET
I have a bunch of C source code and I want to compile it to use the .NET framework. I downloaded Microsoft Visual C ++ and selected a new CLR project. Then I added all the C code, and I tried to compile the files. He said
cl : Command line error D8045: cannot compile C file '..\..\..\..\..\Downloads\lzma912\C\XzDec.c' with the /clr option
Why can't I compile this?
Sometimes, looking at MSDN, you can clarify the situation. You need to get the compiler to treat C files as C ++ files. See here .
Quote:
++ , /clr. /TP .c .cpp ; . /Tc,/Tp,/TC,/TP ( ) .
/Tp, V++ , - ++, C. , .
Source: https://habr.com/ru/post/1763461/More articles:"Interrupted" status in Firebug Net panel with netcat proxy - httpКак преобразовать выражение> в выражение > - c#RollingFileAppender, after it rolls, it is no longer added - log4netdynamic connectors in Visio.vdx files - graphC ++ STL containers, "under the hood"? - c ++Writing an Int array to a stream in .NET. - c #C # string performance - which is faster to compare, string text or string length - performanceSilverlight: Delay in storyboard Complete event handler - animationWhat is wrong with this gzip format? - pythonOracle Instant Client with web application - oracleAll Articles