pradeep
pradeep

Reputation: 3095

pure C++ vs Managed C++

How to build pure C++ application so that it doesn't have any dependencies? i am using VS 2008. I mean, dependencies like dotnetfx framework, etc, other things required by managed C++ programs.

Upvotes: 2

Views: 193

Answers (3)

Aoi Karasu
Aoi Karasu

Reputation: 3825

Just make sure you have the following setting in your general project options No Common Language Runtime support. The project is build without /CLR switch, so there is no .NET framework in it.

Upvotes: 2

Hans Olsson
Hans Olsson

Reputation: 55009

I think as long as you're not using the /clr compiler flag in any way you'd be ok. See here for an article about compiling native C++ programs.

Upvotes: 2

Dror Helper
Dror Helper

Reputation: 30790

If you want to create a native C++ project - that does not use the .NET framework then you want to create a new Win32 project.

Goto File -> new project choose Win32 project (either console or windows) it's located under "other languages" -> "Visual C++"

Upvotes: 1

Related Questions