From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: First Time Use Help! Date: Wed, 01 Nov 2000 13:08:00 GMT Organization: always disorganized Lines: 34 Message-ID: <3a0015a3.20357130@news.freeserve.net> References: NNTP-Posting-Host: modem-222.oregon.dialup.pol.co.uk X-Trace: newsg3.svr.pol.co.uk 973084081 26577 62.137.88.222 (1 Nov 2000 13:08:01 GMT) NNTP-Posting-Date: 1 Nov 2000 13:08:01 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Mike wrote: > I am installing and using for the first time RHIDE v 1.4 on Windows ME and I > am having some problems getting my code to run. It compiles OK but I can't > link it. What must I do? > > Code saved as myfirst.cpp > > > #include You should insert using std::cout; here if you want to do it properly. > int main() > { > cout <<"Hello\n"; > return 0; > } > > error messages are: > myfirst.o: in fucntion main; > myfirst.cpp(.text+0X10): multiple definition of main; > " " first defined here Please copy and paste error messages. How do you expect people to understand them if you mangle them? It looks like you're trying to link together two .cpp files both containing main(). But without seeing the full error message it's difficult to be sure.