delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/13/18:15:27

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linking Problem - wrong error message
Date: Mon, 13 Nov 2000 23:05:25 +0000
Organization: Customer of Energis Squared
Lines: 43
Message-ID: <6sr01tk16l19f3fpj78dim7r72if3jkljt@4ax.com>
References: <t10r9ks5ufv2be AT corp DOT supernews DOT com>
NNTP-Posting-Host: modem-51.cesium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news5.svr.pol.co.uk 974156700 14498 62.136.46.51 (13 Nov 2000 23:05:00 GMT)
NNTP-Posting-Date: 13 Nov 2000 23:05:00 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Mike" <hoofenit AT ris DOT net> 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 <iostream>
> 
> 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.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019