[Qt-interest] duplicate symbol

Thiago Macieira thiago at kde.org
Fri Oct 1 10:27:11 CEST 2010


Em Sexta-feira 01 Outubro 2010, às 09:27:55, Alexander Carôt escreveu:
> > On Friday 1. October 2010 09.00.15 Alexander Carôt wrote:
> > > ld: duplicate symbol myWidget::event(QEvent*) in soundjack.o and main.o
> > > 
> > > How can I fix this ?
> > 
> > You declared the same function in both .cpp. Remove from one.
> 
> I just did that but then I noticed that the problem is obviously not
> related to the event loop: I totally deleted the function and then got the
> same error in context with the constructor:
> 
> ld: duplicate symbol myWidget::myWidget()in soundjack.o and main.o
> 
> Do you have any further hint or is more info required ?

It's the same hint: the symbol is defined in more than one .cpp.

Note that all the #includes count as part of the .cpp.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2010  -  Munich Oct 11-13  -  San Francisco Nov 1-3
For more information and to register: http://qt.nokia.com/qtdevdays2010
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101001/db6f47ae/attachment.bin 


More information about the Qt-interest-old mailing list