[Qt-interest] LNK2001: unresolved external symbol "private: __cdecl QObject::QObject(class QObject const &)"
Thiago Macieira
thiago at kde.org
Tue May 10 09:11:33 CEST 2011
On Tuesday, 10 de May de 2011 16:50:57 Stuart Longland wrote:
> Hi all,
>
> I'm trying to compile an application in Visual Studio 2008 for a Windows
> CE device (Psion WorkAbout PRO to be exact). For whatever reason, the
> link fails with just *one* of my classes. Not any of the others derived
> from QObject.
The copy constructor for QObject is not defined. This symbol you're looking for
simply does not exist. So you need to change your code so you don't call it.
Also, how did you manage to call a private method? Did you modify the
qobject.h header and make your class a friend of QObject?
--
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
-------------- 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/20110510/ee46e56c/attachment.bin
More information about the Qt-interest-old
mailing list