From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26307 invoked by alias); 13 Jun 2002 23:17:30 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26292 invoked from network); 13 Jun 2002 23:17:29 -0000 Received: from unknown (HELO mailcity.com) (209.185.123.154) by sources.redhat.com with SMTP; 13 Jun 2002 23:17:29 -0000 Received: from Unknown/Local ([?.?.?.?]) by mailcity.com; Thu Jun 13 16:17:16 2002 To: gcc-help@gcc.gnu.org, "Antonio Fontinha" Date: Thu, 13 Jun 2002 16:17:00 -0000 From: "Brett Hunt" Message-ID: Mime-Version: 1.0 X-Sent-Mail: on Reply-To: huntbs@lycos.com X-Priority: 3 Subject: Re: question X-Sender-Ip: 137.201.242.130 Organization: Lycos Mail (http://www.mail.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00125.txt.bz2 Add a '-v' without quotes to your compile command to see more information. Like: gcc -v -o hello hello.c Is the linker trying to link the same file twice? Have you inadvertently reused a name that exists in the libraries that are getting linked in? Try the -v and see if that gives you more information that helps. --- brett ----------------------------------- "To the world you may be just somebody. But to somebody you may be the world." ----------------------------------- On Thu, 13 Jun 2002 18:53:00 Antonio Fontinha wrote: >Hi, I'm using gcc 3.0.4. > >And I'm getting the following error: > >TOIOSInterface.o: In function >`UCS_TOTranferAgent::TOIOSInterface::TOIOSInterface()': >/export/home/eid/miguel/TO Transfer Agent/TOIOSInterface.cpp:63: multiple >definition of `UCS_TOTranferAgent::TOIOSInterface::TOIOSInterface()' >TOIOSInterface.o:/export/home/eid/miguel/TO Transfer >Agent/TOIOSInterface.cpp:63: first defined here >TOIOSInterface.o: In function >`UCS_TOTranferAgent::TOIOSInterface::TOIOSInterface()': >/export/home/eid/miguel/TO Transfer Agent/TOIOSInterface.cpp:63: multiple >definition of `UCS_TOTranferAgent::TOIOSInterface::TOIOSInterface()' >TOIOSInterface.o:/export/home/eid/miguel/TO Transfer >Agent/TOIOSInterface.cpp:63: first defined here >collect2: ld returned 1 exit status >make: *** [TOTransferAgent] Error 1 > > >What this error means? > >Isn't this error saying that I've a 1st definition and a 2nd definition in >the same place? (TOIOSInterface.cpp:63) > >I can assure that there is only one >`UCS_TOTranferAgent::TOIOSInterface::TOIOSInterface()' definition. But this >error occurs. > >What's happening? gcc confused? > > >Thanks for your help, best regards: > Miguel Fontinha > > > >P.S.: Is their any gcc switch to activate to give more error information? > > _______________________________________________________ WIN a first class trip to Hawaii. Live like the King of Rock and Roll on the big Island. Enter Now! http://r.lycos.com/r/sagel_mail/http://www.elvis.lycos.com/sweepstakes