delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/17/23:02:01

Message-ID: <5BF60CD649EDD411A04600B0D049F53A5442B8@hydmail02.hyd.wilco-int.com>
From: Prashant Ramachandra <rprash AT wilco-int DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: RE: rhide project question
Date: Fri, 18 May 2001 08:27:36 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

Obviously you have two main() functions, one in the first file and one in
another. You need to have a single entry point. Same with the other errors.
Try making some of the functions "static" and see the difference.

--
Prashant TR <tr AT midpec DOT com>  Web: http://www.midpec.com/

Focus 90% of your time on solutions and only 10% of your time on problems.


On Friday, May 18, 2001 4:01 AM, David Lipman
[SMTP:davelipman AT earthlink DOT net] wrote:
| I have a problem building projects under Rhide.  I can build a
| multiple file
| executable by simply opening the .c files and the .h files and
| "build all"
| to them.  this successfully compiles and links everything and
| created the
| executable file "aout.exe" everytime.  However, when I open a
| project and
| "add" the same files and then try to "build" the project I get an
| error of
| the type "multiple definitions of function 'main'", and other
| "multiple
| function definition" type errors and link time.  Can anyone tell me
| what I'm
| doing wrong in creating my projects?
| 
| Thanks



- Raw text -


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