Mail Archives: djgpp/2001/05/17/23:02:01
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 -