Subject: CGAL users discussion list
List archive
- From:
- To:
- Subject: Linking Problem: CGAL3.3 & QT3.3
- Date: Mon, 16 Jul 2007 05:43:37 +0200
Hi all,
I'm a beginner encountering a linker problem ewhen I try to build the demo
program for "Qt_widget" and some other demos which involve Qt.
There is linker problem between the libraries CGALQt-vc80-mt-gd.lib and
qt-mt3.lib. I'm using CGAL 3.3 and Qt3.3. Any suggestion in troubleshooting
the error below? I would really appreciate your help. Thanks a lot!
Regards,
Like
------ Build started: Project: standard_toolbar, Configuration: Debug Win32
------
Performing Pre-Build Event...
Compiling...
standard_toolbar.cpp
c:\program files\cgal-3.3\include\cgal\float.h(133) : warning C4244: 'return'
: conversion from 'double' to 'float', possible loss of data
Linking...
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"public: __thiscall QString::~QString(void)"
(??1QString@@QAE@XZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"public: virtual void __thiscall QWidget::setGeometry(class QRect const &)"
(?setGeometry@QWidget@@UAEXABVQRect@@@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"public: int __thiscall QRect::width(void)const "
(?width@QRect@@QBEHXZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"public: int __thiscall QRect::height(void)const "
(?height@QRect@@QBEHXZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"protected: virtual void __thiscall QWidget::setWState(unsigned int)"
(?setWState@QWidget@@MAEXI@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"protected: virtual void __thiscall QWidget::setWFlags(unsigned int)"
(?setWFlags@QWidget@@MAEXI@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"public: class QColor const & __thiscall QPen::color(void)const "
(?color@QPen@@QBEABVQColor@@XZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"public: class QPen const & __thiscall QPainter::pen(void)const "
(?pen@QPainter@@QBEABVQPen@@XZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"public: class QBrush const & __thiscall QPainter::brush(void)const "
(?brush@QPainter@@QBEABVQBrush@@XZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "int
__cdecl qstrcmp(char const *,char const *)"
(?qstrcmp@@YAHPBD0@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2005:
"public: int __thiscall QMetaObject::slotOffset(void)const "
(?slotOffset@QMetaObject@@QBEHXZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: __thiscall
QString::~QString(void)"
(??1QString@@QAE@XZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: virtual void
__thiscall QWidget::setGeometry(class QRect const &)"
(?setGeometry@QWidget@@UAEXABVQRect@@@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: int __thiscall
QRect::width(void)const "
(?width@QRect@@QBEHXZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: int __thiscall
QRect::height(void)const "
(?height@QRect@@QBEHXZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "protected: virtual
void __thiscall QWidget::setWState(unsigned int)"
(?setWState@QWidget@@MAEXI@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "protected: virtual
void __thiscall QWidget::setWFlags(unsigned int)"
(?setWFlags@QWidget@@MAEXI@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: class QRect
const & __thiscall QWidget::geometry(void)const "
(?geometry@QWidget@@QBEABVQRect@@XZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: class QPen
const & __thiscall QPainter::pen(void)const "
(?pen@QPainter@@QBEABVQPen@@XZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: class QBrush
const & __thiscall QPainter::brush(void)const "
(?brush@QPainter@@QBEABVQBrush@@XZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "int __cdecl
qstrcmp(char const *,char const *)"
(?qstrcmp@@YAHPBD0@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: int __thiscall
QMetaObject::slotOffset(void)const "
(?slotOffset@QMetaObject@@QBEHXZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_history.obj) : error LNK2005: "int __cdecl
qstrcmp(char const *,char const *)"
(?qstrcmp@@YAHPBD0@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_history.obj) : error LNK2005: "public: int
__thiscall QMetaObject::slotOffset(void)const "
(?slotOffset@QMetaObject@@QBEHXZ)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_layer.obj) : error LNK2005: "int __cdecl
qstrcmp(char const *,char const *)"
(?qstrcmp@@YAHPBD0@Z)
already defined in qt-mt3.lib(qt-mt3.dll)
CGALQt-vc80-mt-gd.lib(Qt_widget_layer.obj) : error LNK2005: "public: int
__thiscall QMetaObject::slotOffset(void)const "
(?slotOffset@QMetaObject@@QBEHXZ)
already defined in qt-mt3.lib(qt-mt3.dll)
MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib'
conflicts with use of other libs; use /NODEFAULTLIB:library
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2001:
unresolved external symbol "struct QUType_int static_QUType_int"
(?static_QUType_int@@3UQUType_int@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_layer.obj) : error LNK2001: unresolved
external symbol "struct QUType_int static_QUType_int"
(?static_QUType_int@@3UQUType_int@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2001:
unresolved external symbol "private: static struct QStringData *
QString::shared_null"
(?shared_null@QString@@0PAUQStringData@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2001: unresolved external
symbol "private: static struct QStringData * QString::shared_null"
(?shared_null@QString@@0PAUQStringData@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2001:
unresolved external symbol "public: static class QColor & Qt::green"
(?green@Qt@@2AAVQColor@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2001:
unresolved external symbol "public: static class QCursor & Qt::crossCursor"
(?crossCursor@Qt@@2AAVQCursor@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_standard_toolbar.obj) : error LNK2001:
unresolved external symbol "class QApplication * qApp"
(?qApp@@3PAVQApplication@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2019: unresolved external
symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A) referenced in
function "protected: virtual void __thiscall
CGAL::Qt_widget::keyReleaseEvent(class QKeyEvent *)"
(?keyReleaseEvent@Qt_widget@CGAL@@MAEXPAVQKeyEvent@@@Z)
CGALQt-vc80-mt-gd.lib(Qt_widget_history.obj) : error LNK2001: unresolved
external symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_layer.obj) : error LNK2001: unresolved
external symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2001: unresolved external
symbol "struct QUType_ptr static_QUType_ptr"
(?static_QUType_ptr@@3UQUType_ptr@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_layer.obj) : error LNK2001: unresolved
external symbol "struct QUType_ptr static_QUType_ptr"
(?static_QUType_ptr@@3UQUType_ptr@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2001: unresolved external
symbol "struct QUType_bool static_QUType_bool"
(?static_QUType_bool@@3UQUType_bool@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_history.obj) : error LNK2001: unresolved
external symbol "struct QUType_bool static_QUType_bool"
(?static_QUType_bool@@3UQUType_bool@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_layer.obj) : error LNK2001: unresolved
external symbol "struct QUType_bool static_QUType_bool"
(?static_QUType_bool@@3UQUType_bool@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2001: unresolved external
symbol "public: static class QColor & Qt::black"
(?black@Qt@@2AAVQColor@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2001: unresolved external
symbol "public: static class QColor & Qt::white"
(?white@Qt@@2AAVQColor@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2001: unresolved external
symbol "struct QUType_Null static_QUType_Null"
(?static_QUType_Null@@3UQUType_Null@@A)
CGALQt-vc80-mt-gd.lib(Qt_widget_layer.obj) : error LNK2001: unresolved
external symbol "struct QUType_Null static_QUType_Null"
(?static_QUType_Null@@3UQUType_Null@@A)
Debug/standard_toolbar.exe : fatal error LNK1120: 10 unresolved externals
Build log was saved at "file://c:\Program
Files\CGAL-3.3\demo\Qt_widget\Debug\BuildLog.htm"
standard_toolbar - 46 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
- Linking Problem: CGAL3.3 & QT3.3, like0001, 07/16/2007
- <Possible follow-up(s)>
- Re: Linking Problem: CGAL3.3 & QT3.3, like0001, 07/16/2007
Archive powered by MHonArc 2.6.16.