[PyKDE] multiply-defined
Frederick Polgardy Jr
fred at polgardy.com
Sat Jun 12 22:41:00 BST 2004
The problem is a linker error resulting from the fact that you are defining
the same methods in more than one place -- generally this happens when
something is defined in a header file that should be in a source (.cpp)
file.
But it's impossible to say much more than that without seeing your code.
On Saturday 12 June 2004 02:17, Meng Li wrote:
> On Fri, 11 Jun 2004, Fred Polgardy wrote:
> > Sounds like you're defining your class methods in a header file
> > somewhere, and then including the header file in multiple places.
>
> what ist multiple place?
> I have including the header file just in two file: one in the same .cpp,
> one in another header file
>
> > What does this have to do with Python or KDE? :)
>
> with KDE
>
> thanks
> meng
>
> > ----- Original Message -----
> > From: "Meng Li" <mengqeic at cs.tu-berlin.de>
> > To: <pykde at mats.imk.fraunhofer.de>
> > Sent: Friday, June 11, 2004 1:43 PM
> > Subject: [PyKDE] multiply-defined
> >
> > > hallo,
> > >
> > > i believ the following error in unix.
> > >
> > > g++ -o programm main.o visual.o vokalgui.o vokImpl.o au_laden.o
> > > audioprozess.o fft.o netz.o neuron.o neuronnetz.o
> > > neuronschicht.o moc_visual.o moc_vokalgui.o moc_vokImpl.o
> > > -Wl,-R,/home/pub/lib/qt3/lib -L/home/pub/lib/qt3/lib
> > > -L/usr/openwin/lib -lqt-mt -lXext -lX11 -lresolv -lsocket -lnsl
> > > ld: fatal: symbol `NeuronSchicht::forward(double*)' is
> > > multiply-defined: (file neuronnetz.o type=FUNC; file neuronschicht.o
> > > type=FUNC); ld: fatal: symbol
> > > `NeuronSchicht::neuronschicht_zufall(int,
> > > TransferFkt)' is multiply-defined:
> > > (file neuronnetz.o type=FUNC; file neuronschicht.o
> > > type=FUNC); ld: fatal: symbol
> > > `NeuronSchicht::NeuronSchicht[in-charge]()' is multiply-defined:
> > > (file neuronnetz.o type=FUNC; file neuronschicht.o
> > > type=FUNC); ld: fatal: symbol
> > > `NeuronSchicht::NeuronSchicht[not-in-charge]()' is multiply-defined:
> > > (file neuronnetz.o type=FUNC; file neuronschicht.o
> > > type=FUNC); ld: fatal: File processing errors. No output written to
> > > programm collect2: ld returned 1 exit status
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `programm'
> > >
> > > Can someone help me?
> > > thanks first!
> > >
> > > i have in neuronnetz: #include "neuronschicht.h"
> > > and in neuornschicht.h: #ifndef NEURONSCHICHT_H
> > > #define NEURONScHICHT_H
> > > ......
> > > #endif
> > >
> > > meng
> > >
> > > _______________________________________________
> > > PyKDE mailing list PyKDE at mats.imk.fraunhofer.de
> > > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
More information about the PyQt
mailing list