Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Vista, MingW and AVG

This thread is locked; no one can reply to it. rss feed Print
Vista, MingW and AVG
Arthur Kalliokoski
Second in Command
February 2005
avatar

I've found that compiling a simple 'hello.c' with the command line
gcc -s hello.c -o hello.exe
makes AVG think it's a virus.
Adding the -O2 -Wall options doesn't do this.
Anybody else care to try it?

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

Samuel Henderson
Member #3,757
August 2003
avatar

What version of Vista? I've got Home Premium and use MinGW regularly, however I don't have AVG, I use Symantec Endpoint Protection (where I work requires it be installed for VPN access).

I could probably throw AVG on here quickly enough to test though. What version of AVG was it? The free one?

=================================================
Paul whoknows: Why is this thread still open?
Onewing: Because it is a pthread: a thread for me to pee on.

Arthur Kalliokoski
Second in Command
February 2005
avatar

Vista Home Premium SP1
AVG Free Edition Ver. 8.5.375

I don't think Mingw is "making a virus", it's just kind a kind of comical misidentification. Send your enemies a "virus"!

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

Jakub Wasilewski
Member #3,653
June 2003
avatar

I've had that once with a different antivirus and my own game compiled by MinGW. The "problem" disappeared when I've written more code for the executable ;).

It's just caused by the antivirus applying broad heuristics to executables, which sometimes results in false positives. Fortunately, changing a few bytes around (which will happen when you write some more code or change the existing lines) will make it register as safe again.

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

Ron Novy
Member #6,982
March 2006
avatar

I have never had AVG pop up a warning like that on Vista...

Perhaps it is a virus on your computer that is infecting the executable after it is created. That has happened to me before, but it was on a Win98 machine and another on an XP machine...

Run the EXE through virustotal and see what you get...

----
Oh... Bieber! I thought everyone was chanting Beaver... Now it doesn't make any sense at all. :-/

Arthur Kalliokoski
Second in Command
February 2005
avatar

I've also seen AVG complain about an innocent .ini file from a windows 95 game...

Ron Novy said:

Perhaps it is a virus on your computer that is infecting the executable after it is created.

Actually AVG is complaining about that dll that has libc in it, the actual exe is then able to weigh in at a svelte 5k.
Seems to me that the non-infected version with -O2 would use that same dll.

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

Go to: