From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: compile error Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <000801bf8f3f$9dc66600$b08aa7ca AT wade> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 35 X-Trace: /bNDCz3fCKywr+IlqBcBrv7kM2duwXfFBQRyhdG6ab445dBcvwEjQ10sLCMsrAw9l0mmYQoF1ffO!3z0hGC9Ho/Jw1qBTRoUym3jD4X9OuEAaqiXRa7OH45yM0NtPdMt/VUnWG2UsXL6/8DH5Z+tjusf5!ylxAaJQ= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Fri, 17 Mar 2000 00:26:02 GMT Distribution: world Date: Fri, 17 Mar 2000 00:26:02 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 16 Mar 2000 21:33:16 +0930, "Michael Wade" wrote: >Compiling: test.cpp > no errors > Creating: test.exe You're using RHIDE... > Error: c:/djgpp/lib\crt0.o(.data+0x92):crt0.s: undefined reference to `main' > Error: c:/djgpp/lib/libc.a(crt1.o)(.text+0x312):crt1.c: undefined reference > >i don't know what to look for in my program. Try adding this code to test.cpp #include using std::cout; int main() { cout << "Oops... I forgot to write main()!\n"; return 0; } Post test.cpp -- Damian Yerrick http://yerricde.tripod.com/ Comment on story ideas: http://home1.gte.net/frodo/quickjot.html AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/ View full sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your .sig to prevent the spread of .sig viruses. http://www.mcafee.com/