Message-ID: <002901c04e47$c8fde1a0$6f4c1b18@houston.rr.com> From: "Tom Hutto" To: Subject: Re: Linking Problem - wrong error message X-Mailer: Microsoft Outlook Express 5.50.4522.1200 Date: Tue, 14 Nov 2000 08:32:57 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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.) |