Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] Problems with CGAL3+QT3

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] Problems with CGAL3+QT3


Chronological Thread 
  • From: liuxintao <>
  • To: <>
  • Subject: RE: [cgal-discuss] Problems with CGAL3+QT3
  • Date: Sat, 22 Mar 2008 10:59:29 +0800
  • Importance: Normal

Hi,
 
I am also using CGAL3.3.1 + QT 3.3.8 + Visual Studio 2005, and I got the same error! and I have libs as belows:
 
qt-mt3.lib
qtmain.lib
wsock32.lib
winmm.lib
imm32.lib
 
Any ideas? Many thanks in advance!
 
 
P.S.  The errors are as belows:
 
 1 error LNK2005: "int __cdecl qstrcmp(char const *,char const *)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 2 error LNK2005: "public: bool __thiscall QObject::signalsBlocked(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 3 error LNK2005: "public: int __thiscall QMetaObject::signalOffset(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 4 error LNK2005: "public: __thiscall QUObject::QUObject(void)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 5 error LNK2005: "public: __thiscall QUObject::~QUObject(void)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 6 error LNK2005: "public: int __thiscall QMetaObject::slotOffset(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 7 error LNK2005: "public: bool & __thiscall QUType_bool::get(struct QUObject *)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 8 error LNK2005: "public: void * & __thiscall QUType_ptr::get(struct QUObject *)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 9 error LNK2005: "public: __thiscall QString::~QString(vo id)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 10 error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 11 error LNK2005: "public: int __thiscall QRect::width(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 12 error LNK2005: "public: int __thiscall QRect::height(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 13 error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 14 error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 15 error LNK2005: "public: class QRect const & __thiscall QWidget::geometry(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 16 error LNK2005: "public: class QPen const & __thiscall QPainter::pen(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 17 error LNK2005: "public: class QBrush const & __thiscall QPainter::brush(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 18 error LNK2005: "public: __thiscall QColor::QColor(int,int,int)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 19 error LNK2005: "int __cdecl qstrcmp(char const *,char const *)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 20 error LNK2005: "public: bool __thiscall QObject::signalsBlocked(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 21 error LNK2005: "public: int __thiscall QMetaObject::signalOffset(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 22 error LNK2005: "public: __thiscall QUObject::QUObject(void)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 23 error LNK2005: "public: __thiscall QUObject::~QUObject(void)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 24 error LNK2005: "public: int __thiscall QMetaObject::slotOffset(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 25 error LNK2005: "public: void * & __thiscall QUType_ptr::get(struct QUObject *)" () already defined in qt-mt3.lib(qt-mt3.dll)  ;CGALQt-vc80-mt-gd.lib 
 26 error LNK2005: "public: __thiscall QString::~QString(void)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 27 error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 28 error LNK2005: "public: int __thiscall QRect::width(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 29 error LNK2005: "public: int __thiscall QRect::height(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 30 error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 31 error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 32 error LNK2005: "public: virtual void __thiscall QDockWindow::undock(void)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 33 error LNK2005: "public: int __thiscall QMouseEvent::x(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 34 error LNK2005: "public: int __thiscall QMouseEvent::y(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 35 error LNK2005: "public: enum Qt::ButtonState __thiscall QMouseEvent::button(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 36 error LNK2005: "public: enum Qt::ButtonState __thiscall QMouseEvent::state(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 37 error LNK2005: "public: enum Qt::RasterOp __thiscall QPainter::rasterOp(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 38 error LNK2005: "public: class QColor const & __thiscall QPen::color(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 39 error LNK2005: "public: class QPen const & __thiscall QPainter::pen(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 40 error LNK2005: "public: class QBrush const & __thiscall QPainter::brush(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 41 error LNK2005: "public: int __thiscall QKeyEvent::key(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
& nbsp;42 error LNK2005: "public: enum QWidget::FocusPolicy __thiscall QWidget::focusPolicy(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 43 error LNK2005: "int __cdecl qstrcmp(char const *,char const *)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 44 error LNK2005: "public: int __thiscall QMetaObject::slotOffset(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 45 error LNK2005: "int __cdecl qstrcmp(char const *,char const *)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 46 error LNK2005: "public: int __thiscall QMetaObject::signalOffset(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 47 error LNK2005: "public: int __thiscall QMetaObject::slotOffset(void)const " () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 48 error LNK2005: "public: bool & __thiscall QUType_bool::get(struct QUObject *)" () already defined in qt-mt3.lib(qt-mt3.dll) CGALQt-vc80-mt-gd.lib 
 50 error LNK2001: unresolved external symbol "struct QUType_ptr static_QUType_ptr" () CGALQt-vc80-mt-gd.lib 
 51 error LNK2001: unr esolved external symbol "struct QUType_ptr static_QUType_ptr" () CGALQt-vc80-mt-gd.lib 
 52 error LNK2001: unresolved external symbol "struct QUType_bool static_QUType_bool" () CGALQt-vc80-mt-gd.lib 
 53 error LNK2001: unresolved external symbol "struct QUType_bool static_QUType_bool" () CGALQt-vc80-mt-gd.lib 
 54 error LNK2001: unresolved external symbol "struct QUType_bool static_QUType_bool" () CGALQt-vc80-mt-gd.lib 
 55 error LNK2001: unresolved external symbol "struct QUType_int static_QUType_int" () CGALQt-vc80-mt-gd.lib 
 56 error LNK2001: unresolved external symbol "struct QUType_int static_QUType_int" () CGALQt-vc80-mt-gd.lib 
 57 error LNK2001: unresolved external symbol "class QApplication * qApp" () CGALQt-vc80-mt-gd.lib 
 58 error LNK2001: unresolved external symbol "class QApplication * qApp" () CGALQt-vc80-mt-gd.lib 
 59 error LNK2001: unresolved external symbol "class QApplication * qApp" () CGALQt-vc80-mt-gd.lib 
 60 error LNK2001: unresolved external symbol "class QApplication * qApp" () CGALQt-vc80-mt-gd.lib 
 61 error LNK2001: unresolved external symbol "struct QUType_Null static_QUType_Null" () CGALQt-vc80-mt-gd.lib 
 62 error LNK2001: unresolved external symbol "struct QUType_Null static_QUType_Null" () CGALQt-vc80-mt-gd.lib 
 63 error LNK2001: unresolved external symbol "public: static class QColor & Qt::black" () CGALQt-vc80-mt-gd.lib 
 64 error LNK2001: unresolved external symbol "public: static class QColor & Qt::white" () CGALQt-vc80-mt-gd.lib 
 65 error LNK2001: unresolved external symbol "private: static struct QStringData * QString::shared_null" () CGALQt-vc80-mt-gd.lib 
 66 error LNK2001: unresolved external symbol "private: static struct QStringData * QString::shared_null" () CGALQt-vc80-mt-gd.lib 
 67 error LNK2001: unresolved external symbol "public: static class QColor & Qt::green" () CGALQt-vc80-mt-gd.lib 
 68 error LNK2001: unresolved external symbol "public: static class QCursor & Qt::crossCursor" () CGALQt-vc80-mt-gd.lib 

 

 


 

Date: Fri, 21 Mar 2008 14:44:19 +0800
From:
To:
Subject: Re: [cgal-discuss] Problems with CGAL3+QT3

yes,  there are qt-mt3.lib
qt-mt3.lib
qtmain.lib
wsock32.lib
winmm.lib
imm32.lib
cgalqt-vc71-mt.lib

in the linker->input section

but the errors remain




On Wed, Mar 19, 2008 at 10:22 PM, Mahmood Naderan <> wrote:
>I m using CGAL3.3.1 + QT 3.3.8. when i built the demo Qt_widget/ standard_toolbar.vcproj, it comes these >errors:

Did you add "cgalqt.lib", "qtmain.lib" and "qt-mt.lib" in "project properties->linker->input" section?

-------------------
Mahmood Naderan
http://ce.sharif.edu/~m_naderan





----- Original Message ----
From: Justin <>
To:
Sent: Monday, March 17, 2008 10:23:41 PM
Subject: [cgal-discuss] Problems with CGAL3+QT3

Dear all,

I m using CGAL3.3.1 + QT 3.3.8. when i built the demo Qt_widget/ standard_toolbar.vcproj, it comes these errors:





c:\Program Files\CGAL-3.3.1\include\CGAL\float.h(133): warning C4244: 'return' : conversion from 'double' to 'CGAL::Algebraic_structure_traits_base<Type,Algebra_type>::Type', possible loss of data
with
[
Type=float,
Algebra_type=CGAL::Field_with_kth_root_tag
]
standard_toolbar error LNK2005: "public: __thiscall QString::~QString(void)" (??1QString@@QAE@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" (?setGeometry@QWidget@@UAEXABVQRect@@@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: int __thiscall QRect::width(void)const " (?width@QRect@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: int __thiscall QRect::height(void)const " (?height@QRect@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" (?setWState@QWidget@@MAEXI@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" (?setWFlags@QWidget@@MAEXI@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: class QColor const & __thiscall QPen::color(void)const " (?color@QPen@@QBEABVQColor@@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: class QPen const & __thiscall QPainter::pen(vo id)const " (?pen@QPainter@@QBEABVQPen@@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: class QBrush const & __thiscall QPainter::brush(void)const " (?brush@QPainter@@QBEABVQBrush@@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "int __cdecl qstrcmp(char const *,char const *)" (?qstrcmp@@YAHPBD0@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: int __thiscall QMetaObject::slotOffset(void)const " (?slotOffset@QMetaObject@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: __thiscall QString::~QString(void)" (??1QString@@QAE@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" (?setGeometry@QWidget@@UAEXABVQRect@@@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: int __thiscall QRect::width(void)const " (?width@QRect@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: int __thiscall QRect::height(void)const " (?height@QRect@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" (?setWState@QWidget@@MAEXI@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" (?setWFlags@QWidget@@MAEXI@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: class QRect const & __thiscall QWidget::geometry(void)const " (?geometry@QWidget@@QBEABVQRect@@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: class QPen const & __thiscall QPainter::pen(void)const " (?pen@QPainter@@QBEABVQPen@@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: class QBrush const & __thiscall QPainter:: brush(void)const " (?brush@QPainter@@QBEABVQBrush@@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "int __cdecl qstrcmp(char const *,char const *)" (?qstrcmp@@YAHPBD0@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: int __thiscall QMetaObject::slotOffset(void)const " (?slotOffset@QMetaObject@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "int __cdecl qstrcmp(char const *,char const *)" (?qstrcmp@@YAHPBD0@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: int __thiscall QMetaObject::slotOffset(void)const " (?slotOffset@QMetaObject@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "int __cdecl qstrcmp(char const *,char const *)" (?qstrcmp@@YAHPBD0@Z) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar error LNK2005: "public: int __thiscall QMetaObject::slotOffset(void)const " (?slotOffset@QMetaObject@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
standard_toolbar warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_int static_QUType_int" (?static_QUType_int@@3UQUType_int@@A)
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_int static_QUType_int" (?static_QUType_int@@3UQUType_int@@A)
standard_toolbar error LNK2001: unresolved external symbol "private: static struct QStringData * QString::shared_null" (?shared_null@QString@@0PAUQStringData@@A)
standard_toolbar error LNK2001: unresolved external symbol "private: static struct QStringData * QString::shared_null" (?shared_null@QString@@0PAUQStringData@@A)
standard_toolbar error LNK2001: unresolved external symbol "public: static class QColor & Qt::green" (?green@Qt@@2AAVQColor@@A)
standard_toolbar error LNK2001: unresolved external symbol "public: static class QCursor & Qt::crossCursor" (?crossCursor @Qt@@2AAVQCursor@@A)
standard_toolbar error LNK2001: unresolved external symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A)
standard_toolbar error LNK2001: unresolved external symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A)
standard_toolbar error LNK2001: unresolved external symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A)
standard_toolbar error LNK2001: unresolved external symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A)
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_ptr static_QUType_ptr" (?static_QUType_ptr@@3UQUType_ptr@@A)
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_ptr static_QUType_ptr" (?static_QUType_ptr@@3UQUType_ptr@@A)
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_bool static_QUType_bool" (?static_QUType_bool@@3UQUType_bool@@A)
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_bool static_QUType_bool" (?static_QUType_bool@@3UQUType_bool@@A)
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_bool static_QUType_bool" (?static_QUType_bool@@3UQUType_bool@@A)
standard_toolbar error LNK2001: unresolved external symbol "public: static class QColor & Qt::black" (?black@Qt@@2AAVQColor@@A)
standard_toolbar error LNK2001: unresolved external symbol "public: static class QColor & Qt::white" (?white@Qt@@2AAVQColor@@A)
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_Null static_QUType_Null" (?static_QUType_Null@@3UQUType_Null@@A)
standard_toolbar error LNK2001: unresolved external symbol "struct QUType_Null static_QUType_Null" (?static_QUType_Null@@3UQUType_Null@@A)
standard_toolbar fatal error LNK1120: 10 unresolved externals


anyone knows how to deal with it?

Many thanks!!

Best,
Justin


     ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss



Windows Live Writer,支持离线撰写博客内容,随时随地想写就写。 立即使用!



Archive powered by MHonArc 2.6.16.

Top of Page