Visual Studio 2010 MSVCR dependency removal?

前端 未结 3 1835
心在旅途
心在旅途 2020-12-09 18:01

I\'ve tried Googleing this but I could not find a solution. I am trying to learn some basic C++. I wrote a simple hello world:

#include 
int m         


        
3条回答
  •  囚心锁ツ
    2020-12-09 18:33

    you can remove the annoying run-time library, do this:
    project properties > linker > input > ignore all default libraries> yes

    this will give you quiet a few issues you need to deal with, for example, floating point numbers won't work, stack memory is very small (about 3k), there's no built in help against buffer overflows and such, and you can't use the standard library without copy pasting it in your project.

    this will also decrease the size of the .exe nearly equivalent to as if it was hand made in assembly.

提交回复
热议问题