delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Sun, 28 Oct 2001 16:29:40 +0100 |
From: | "Gerrit P. Haase" <gp AT familiehaase DOT de> |
X-Mailer: | The Bat! (v1.53d) |
Reply-To: | "Gerrit P. Haase" <cygwin AT cygwin DOT com> |
Organization: | Esse keine toten Tiere |
X-Priority: | 3 (Normal) |
Message-ID: | <135703595536.20011028162940@familiehaase.de> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: HELP!!! |
In-Reply-To: | <3BDC1B1A.9010308@gmx.at> |
References: | <3BDC1B1A DOT 9010308 AT gmx DOT at> |
MIME-Version: | 1.0 |
X-Hops: | 1 |
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 AT 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 AT familiehaase DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |