首页 > 解决方案 > 每次我编译 exe c++ 程序时,它都被检测为病毒

问题描述

所述程序的示例:

#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("aa");
    return 0;
}

我把这个程序放在 virustotal 中,这是它的输出: https ://www.virustotal.com/gui/file/8ba14bd65c6a83e6b776359ebdefad41e039ee0091e37300a7b463f497277d52/detection

我正在使用带有 Visual C++ 编译器的 Visual Studio。即使在我重新安装 Windows 之后也会出现此问题(我认为我有某种病毒会将其代码注入我的程序,所以我认为重新安装 Windows 会有所帮助)。更奇怪的是,Windows Defender 没有检测到同一个程序的任何问题……这是 Visual C++ 编译器的正常问题吗?或者我可能有某种病毒,即使在重新安装 Windows 之后?

标签: c++compilationvisual-studio-2019virus

解决方案


推荐阅读