From: "Tom Hutto" Newsgroups: comp.os.msdos.djgpp References: <6sr01tk16l19f3fpj78dim7r72if3jkljt AT 4ax DOT com> Subject: Re: Linking Problem - wrong error message Lines: 55 X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Tue, 14 Nov 2000 14:30:59 GMT NNTP-Posting-Host: 24.27.76.111 X-Complaints-To: abuse AT rr DOT com X-Trace: typhoon.austin.rr.com 974212259 24.27.76.111 (Tue, 14 Nov 2000 08:30:59 CST) NNTP-Posting-Date: Tue, 14 Nov 2000 08:30:59 CST Organization: Road Runner - Texas To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Tell RHIDE to generate a makefile and then manually dig the compile flags and link libs out of that. "Jason Green" wrote in message news:6sr01tk16l19f3fpj78dim7r72if3jkljt AT 4ax 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. Is this a ME problem? What must I do to get any program running? | > | > Code saved as myfirst.cpp | > | > | > #include | > | > 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 | | Looks like you did something like `gpp myfirst.cpp -o myfirst.o', but | forgot the `-o'. | | And then... | | > Sorry, I posted the wrong error message. Here is the right one: | > | > Creating: first.exe | > the error was: Invalid argument (EINVAL) | > no errors | | Hmm, those are two completely different error messages. Even the | filename changed. | | Can you show us the exact error message and, importantly, the exact | compile command that caused them? Then someone can say what is wrong. | | | (Is there something about RHIDE that makes it difficult to post the | compile command causing errors? I don't use RHIDE myself. Anyway, | this seems a common problem.) |