Using the C Compiler for Managed C

I l @ ve RuBoard

Using the C++ Compiler for Managed C++

The compiler has a new /CLR command-line switch that signifies that code should be compiled for the Common Language Runtime.

Using the /LD command-line switch will create a DLL instead of an EXE.

When using the compiler in this mode, the linker will be invoked automatically to produce an executable file that requires the .NET CLR to make it work. This implies that you cannot create executables and run them on systems that do not support the .NET runtime. You can disable the link step by using the /c command-line switch. In this case, an .obj file is created in the normal way.

You can use the /link compiler command-line option to pass the remainder of the command line directly to the linker. The /link directive is the last one the compiler notices. All other directives are passed to the linker command line.

I l @ ve RuBoard


C# and the .NET Framework. The C++ Perspective
C# and the .NET Framework
ISBN: 067232153X
EAN: 2147483647
Year: 2001
Pages: 204

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net