Mail Archives: djgpp/1997/09/04/10:33:05
From: | munky AT netdoor DOT com (Jaime Wyant)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Multiple source file problems
|
Date: | Thu, 04 Sep 1997 13:31:46 GMT
|
Organization: | Internet Doorway, Inc. http://www.netdoor.com
|
Lines: | 19
|
Message-ID: | <340eb752.1447608@news.netdoor.com>
|
NNTP-Posting-Host: | port77.hat.netdoor.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi, I am working with RHIDE on a small project that compares various
sort algorithms under various conditions. I have divided the program
into 3 files: sort.c (The main module)
merge_sort.c (Merge module)
merge.h
The problem is, when I build all i get an error telling me I have
multiple instances of main in sort.o (I don't). Does anyone have any
ideas? An email reply would be greatly appreciated.
The error is listed below:
Creating: sort.exe
Error: sort.o: In function `main':
sort.c(12) Error: multiple definition of `main'
o:sort.c(12) Error: first defined here
There were some errors
Thanks,
Jaime
- Raw text -