HELP!!!

Gerrit P. Haase gp@familiehaase.de
Sun Oct 28 07:27:00 GMT 2001


Hallo Sascha,

Am 2001-10-28 um 15:50 schriebst du:

> code of a email rpg called German Atlantis V6.6

[...]

> gcc -lm -oatlantis atlantis.o build.o combat.o constant.o contact.o
> creation.o economic.o give.o indicato.o language.o laws.o magic.o main.o
> monster.o movement.o reports.o save.o study.o terrain.o translate.o
> main.o: In function `main':
> /cygdrive/c/atlantis/prog/main.c(.text+0xdf8): multiple definition of `main'
> /usr/lib/libm.a(libcmain.o)(.text+0x0):
> /cygnus/netrel/src/cygwin-1.3.3-2/winsup/cygwin/lib/libcmain.c: first defined here
> /usr/lib/libm.a(libcmain.o): In function `main':
> /cygnus/netrel/src/cygwin-1.3.3-2/winsup/cygwin/lib/libcmain.c:31: 
> undefined reference to `WinMain@16'
> collect2: ld returned 1 exit status
> make: *** [atlantis] Error 1

> so i hope anyone of you can tell what that are supposed to be

Makefile:
=========
OBJECTS = atlantis.o build.o combat.o constant.o contact.o \
          creation.o economic.o give.o indicato.o language.o \
          laws.o magic.o main.o monster.o movement.o reports.o \
          save.o study.o terrain.o translate.o

gcc $(OBJECTS) -o atlantis.exe

remove '-lm' from the link line or at least put it at the end instead
of the beginning of the line.

Ciao,

Gerrit P. Haase                            mailto:gp@familiehaase.de
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list