From: "A. Jans-Beken" Newsgroups: comp.os.msdos.djgpp Subject: Re: MSVC + Allegro Date: Fri, 29 Dec 2000 16:51:25 +0100 Organization: Planet Internet Lines: 27 Message-ID: <3A4CB2FD.4EFBF1AB@wxs.nl> References: <3A490BC9 DOT 55C9340 AT gtcom DOT net> NNTP-Posting-Host: ipc3797b26.dial.wxs.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reader01.wxs.nl 978104998 54955 195.121.123.38 (29 Dec 2000 15:49:58 GMT) X-Complaints-To: abuse AT wxs DOT nl NNTP-Posting-Date: 29 Dec 2000 15:49:58 GMT X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Had similar problems... Try to add the line END_OF_MAIN() right after your main() function. That may help. Example: int main() { /* your code */ } END_OF_MAIN() Krogg wrote: > I want to convert some of my eyecandy programs to > windows screen savers.I have MSVC 4.0 and the latest > allegro dlls/headers/and librarys...I figured the > best thing to do was to try to compile the screen > saver that comes as an example,but i cant get around > this hurdle: > > LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main > > I am assuming that someone here has succesfully compiled the > example screensaver and can lend a hand... > > So,what kind of moronic oversight have i had?... > > -- > .sig wobbled out of orbit.