Odd title... I know. I've been trying to learn C++ off and on for a while now and I think that I've finally found a great EBook. Well I'm following along and it's all very simple stuff that I know. Like I'm just on the part that prints out hello world:
However, if I add:cout << "How are you?" << endl; after the first cout, my AVG comes up and tells me that I have a virus. I can't find an image button for these forums, but it says:
Then it gives me the option to protect or ignore. It doesn't matter which one I do, the code still won't compile as the same threat will come up again. Has anyone else had this issue before?
I was going to make a sarcastic remark about AVG and AV software in general... but instead I'll just say that AV software is not perfect and getting false positives is unfortunately quite common.
This is less a problem with C++ and more a problem with AVG. One thing you might be able to do is to specify some kind of "safe" directory where the AV does not scan/look for viruses.
If you can't do that... or if otherwise disabling/ignoring the AV is not an option, the only other thing I can think of to do is to take this issue to AVG and see what they can do to fix it.