delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/02/09:36:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3F02DFB5.184A21E8@dessent.net>
Date: Wed, 02 Jul 2003 06:35:49 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
X-Accept-Language: en,en-US
MIME-Version: 1.0
CC: cygwin AT cygwin DOT com
Subject: Re: More on GCC
References: <3EFE120B DOT 58A0C79E AT dessent DOT net> <Pine DOT GSO DOT 4 DOT 44 DOT 0306282234360 DOT 22307-100000 AT slinky DOT cs DOT nyu DOT edu> <20030701040434 DOT GE7604 AT ny-kenton2a-710 DOT buf DOT adelphia DOT net> <3F018740 DOT B28F53DC AT dessent DOT net> <3F018D6C DOT EA1226CA AT dessent DOT net> <Xns93ABB16F2D760soren1Gmane AT 80 DOT 91 DOT 224 DOT 249> <3F021C46 DOT C8F4CE31 AT dessent DOT net> <Xns93AC469331861soren1Gmane AT 80 DOT 91 DOT 224 DOT 249> <Xns93AC47EC6AA77soren1Gmane AT 80 DOT 91 DOT 224 DOT 249> <3F02DA32 DOT EAD1FC18 AT dessent DOT net> <Law10-OE589juGXoDAb0001da35 AT hotmail DOT com>

Martin Gainty wrote:

> I managed to get 2 modules to compile. SLPReg.o has a main libslp_handle
> does not have a main . But I get this always get this error
> $ GCC
> SLPReg.c -nostartfiles -L/cygdrive/f/slp/openslp-1.1.3/common/.libs/test
> libslp_handle.o SLPReg.o
> SLPReg.o(.text+0xc8):SLPReg.c: multiple definition of `_main'
> 
> Where is the extra definition of _main coming from?

WTF does this have to do with copying a path to the clipboard?  Please
don't just reply to random posts, it kills the whole threading concept.

It looks to me like you're giving the linker two copies of SLPReg.o
since you included it twice on the command line; specifying a .c file
implies you want to link the corresponding .o.  Try something along the
lines of:

gcc -Ljunk SLPReg.c libslp_handle.o -o SLPReg.exe

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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