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

From: "Mike" <hoofenit AT ris DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Linking Problem
Date: Mon, 13 Nov 2000 13:59:43 -0700
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <t10li6pqk7kk4c@corp.supernews.com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Complaints-To: newsabuse AT supernews DOT com
Lines: 30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi everyone,

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




Mike Schnobrich




- Raw text -


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