Message-ID: <3A4D3D82.6BEED650@gtcom.net> From: Krogg X-Mailer: Mozilla 4.73 [en] (Win95; U) X-Accept-Language: en,en-US,en-GB,ja,af MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: MSVC + Allegro(possibly a duplicate post) References: <3A490BC9 DOT 55C9340 AT gtcom DOT net> <3A4CB2FD DOT 4EFBF1AB AT wxs DOT nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 60 Date: Fri, 29 Dec 2000 20:42:26 -0500 NNTP-Posting-Host: 12.111.140.46 X-Trace: eagle.america.net 978140603 12.111.140.46 (Fri, 29 Dec 2000 20:43:23 EST) NNTP-Posting-Date: Fri, 29 Dec 2000 20:43:23 EST Organization: 24hoursupport.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > > 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?... "A. Jans-Beken" wrote: > > 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() Thank you for your reply,please ignore the rest of this post. I all ready tried that,but that doesnt work...(for the screen saver example that i downloaded,i CAN compile some other things) The best part is that after compiling another example that i found on a "allegro+msvc howto" site and the allegro dll page faulted...I run it through the debugger and find the problem is in install_allegro()....so i download the precompiled demo to see if that is cause my .lib and .dll's are not the same and i find that it crashes with the same message. There is some problem with the dlls somewhere in install_allegro() that wont work on my box....I even tried putting in SYSTEM_NONE just to see if it was a problem with my hardware,but it still crashed... I am getting fustrated to death... I really want to keep using allegro,as i have come to like it,but somehow the stars are against me....... I cant take it anymore.......I have stayed up over 2 days trying everything under the sun to get this to work.I quit...I dont know what pitfalls there are in DX but I am going to start down that path now and see where it leads......Oh ya,and while i am venting i might as well say that...never mind......I might regret it.... For anyone who read this far, be cool......... -- .sig went crazy.