
For me, AVG then warns me about it, I click ignore, then it lets me run it anyway.

An easy way to convince AVG that your C++ program is safe is to add the c++ statement: system("pause") in the beginning of your C++ program and recompiling and re-running. But if only a few antiviruses label your file as evil, then it's possible that AVG has a false positive. Go to the website, there you can upload your file for free, and it will be analyzed by about 50 different antivirus programs, if the majority of them think it is a virus, then AVG has done well. Get a second opinion about this malware/virus file, better yet, get 50 independent second opinions.

At this point you can know AVG thinks this file alone is the malware. AVG will scan the file instantly and recommend to add it to the vault.

Choose the offending executable or file defined in your threat window. Why is AVG labeling my C++ program a virus?įor example, here is a C++ program that AVG detects as a virus: #include Ĭout Tools menu -> scan file.
