Subject: CGAL users discussion list
List archive
- From: "xam huang" <>
- To: cgal-discuss <>
- Subject: help:demo/polygon_2 errors with vc80 and qt3.3
- Date: Thu, 27 Mar 2008 08:47:30 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=pcHeSHkT3MiHTW3NrbAa7ULIzwhCv2maiV94Kun5reW09jyumGUJw5WtSbDGePFq3KfEifrz84kNQORC8YCrGyXHzc7gGv4TxHwvtQur2fkpyea8PIISuRVLZguYFwW7jr0QKjIZO4e8O1KOrr8kKU2R6q6+6/hciszlJ4RmCNc=
Hi,everyone
I am using vc80 qt3.3 .
I have compiled the src\CGAL_80.sln secessfully
but there are many errors with the demo\polygon2
while the qt-mt3.lib cgalqt-vc80-mt-s.lib qtmain.lib wsock32.lib winmm.lib imm32.lib have already been added to the project.
How can I removed these errors:
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "class QString const __cdecl operator+(class QString const &,char const *)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "public: virtual void __thiscall QDockWindow::undock(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_history.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
CGAL-vc80-mt-sgd.lib(Color.obj) : warning LNK4075: 忽略"/EDITANDCONTINUE"(由于"/OPT:ICF"规范)
msvcrt.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" () 已经在 LIBCMTD.lib(typinfo.obj) 中定义
msvcrt.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" () 已经在 LIBCMTD.lib(typinfo.obj) 中定义
LINK : warning LNK4098: 默认库"LIBCMT"与其他库的使用冲突;请使用 /NODEFAULTLIB:library
LIBCMTD.lib(crt0init.obj) : warning LNK4098: 默认库"msvcrt.lib"与其他库的使用冲突;请使用 /NODEFAULTLIB:library
cgalqt-vc80-mt-s.lib(Qt_widget_history.obj) : error LNK2019: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" (),该符号在函数 "public: static char * __cdecl std::char_traits<char>::_Move_s(char *,unsigned int,char const *,unsigned int)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2001: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" ()
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" ()
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2001: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2019: 无法解析的外部符号 "struct QUType_Null static_QUType_Null" (),该符号在函数 "public: __thiscall QUObject::QUObject(void)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_Null static_QUType_Null" ()
cgalqt-vc80-mt-s.lib(Qt_widget_history.obj) : error LNK2001: 无法解析的外部符号 "class QApplication * qApp" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2019: 无法解析的外部符号 "class QApplication * qApp" (),该符号在函数 "public: static class QString __cdecl CGAL::Qt_widget_layer::tr(char const *,char const *)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "class QApplication * qApp" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "class QApplication * qApp" ()
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2001: 无法解析的外部符号 "class QApplication * qApp" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_ptr static_QUType_ptr" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_ptr static_QUType_ptr" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_int static_QUType_int" ()
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_int static_QUType_int" ()
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_int static_QUType_int" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_bool static_QUType_bool" ()
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_bool static_QUType_bool" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_bool static_QUType_bool" ()
cgalqt-vc80-mt-s.lib(Qt_widget_history.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_bool static_QUType_bool" ()
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2019: 无法解析的外部符号 "public: static class QColor & Qt::blue" (),该符号在函数 "public: void __thiscall CGAL::Qt_help_window::print(void)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_QString static_QUType_QString" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2019: 无法解析的外部符号 "public: static class QColor & Qt::black" (),该符号在函数 "public: __thiscall CGAL::Qt_widget::Qt_widget(class QWidget *,char const *)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2019: 无法解析的外部符号 "public: static class QColor & Qt::white" (),该符号在函数 "public: __thiscall CGAL::Qt_widget::Qt_widget(class QWidget *,char const *)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2019: 无法解析的外部符号 "public: static class QCursor & Qt::crossCursor" (),该符号在函数 "private: virtual void __thiscall CGAL::Qt_widget_zoomrect::activating(void)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2019: 无法解析的外部符号 "public: static class QColor & Qt::green" (),该符号在函数 "private: virtual void __thiscall CGAL::Qt_widget_zoomrect::mouseMoveEvent(class QMouseEvent *)" () 中被引用
Release/polygon_2.exe : fatal error LNK1120: 12 个无法解析的外部命令
生成日志保存在"file://c:\Program Files\CGAL-3.3.1\demo\Polygon\Release\BuildLog.htm"
polygon_2 - 46 个错误,3 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
I am using vc80 qt3.3 .
I have compiled the src\CGAL_80.sln secessfully
but there are many errors with the demo\polygon2
while the qt-mt3.lib cgalqt-vc80-mt-s.lib qtmain.lib wsock32.lib winmm.lib imm32.lib have already been added to the project.
How can I removed these errors:
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "class QString const __cdecl operator+(class QString const &,char const *)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWState(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "protected: virtual void __thiscall QWidget::setWFlags(unsigned int)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2005: "public: virtual void __thiscall QDockWindow::undock(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
cgalqt-vc80-mt-s.lib(Qt_widget_history.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" () 已经在 qt-mt3.lib(qt-mt3.dll) 中定义
CGAL-vc80-mt-sgd.lib(Color.obj) : warning LNK4075: 忽略"/EDITANDCONTINUE"(由于"/OPT:ICF"规范)
msvcrt.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" () 已经在 LIBCMTD.lib(typinfo.obj) 中定义
msvcrt.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" () 已经在 LIBCMTD.lib(typinfo.obj) 中定义
LINK : warning LNK4098: 默认库"LIBCMT"与其他库的使用冲突;请使用 /NODEFAULTLIB:library
LIBCMTD.lib(crt0init.obj) : warning LNK4098: 默认库"msvcrt.lib"与其他库的使用冲突;请使用 /NODEFAULTLIB:library
cgalqt-vc80-mt-s.lib(Qt_widget_history.obj) : error LNK2019: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" (),该符号在函数 "public: static char * __cdecl std::char_traits<char>::_Move_s(char *,unsigned int,char const *,unsigned int)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2001: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" ()
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" ()
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2001: 无法解析的外部符号 "private: static struct QStringData * QString::shared_null" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2019: 无法解析的外部符号 "struct QUType_Null static_QUType_Null" (),该符号在函数 "public: __thiscall QUObject::QUObject(void)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_Null static_QUType_Null" ()
cgalqt-vc80-mt-s.lib(Qt_widget_history.obj) : error LNK2001: 无法解析的外部符号 "class QApplication * qApp" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2019: 无法解析的外部符号 "class QApplication * qApp" (),该符号在函数 "public: static class QString __cdecl CGAL::Qt_widget_layer::tr(char const *,char const *)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "class QApplication * qApp" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "class QApplication * qApp" ()
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2001: 无法解析的外部符号 "class QApplication * qApp" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_ptr static_QUType_ptr" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_ptr static_QUType_ptr" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_int static_QUType_int" ()
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_int static_QUType_int" ()
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_int static_QUType_int" ()
cgalqt-vc80-mt-s.lib(Qt_widget_layer.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_bool static_QUType_bool" ()
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_bool static_QUType_bool" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_bool static_QUType_bool" ()
cgalqt-vc80-mt-s.lib(Qt_widget_history.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_bool static_QUType_bool" ()
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2019: 无法解析的外部符号 "public: static class QColor & Qt::blue" (),该符号在函数 "public: void __thiscall CGAL::Qt_help_window::print(void)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_help_window.obj) : error LNK2001: 无法解析的外部符号 "struct QUType_QString static_QUType_QString" ()
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2019: 无法解析的外部符号 "public: static class QColor & Qt::black" (),该符号在函数 "public: __thiscall CGAL::Qt_widget::Qt_widget(class QWidget *,char const *)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget.obj) : error LNK2019: 无法解析的外部符号 "public: static class QColor & Qt::white" (),该符号在函数 "public: __thiscall CGAL::Qt_widget::Qt_widget(class QWidget *,char const *)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2019: 无法解析的外部符号 "public: static class QCursor & Qt::crossCursor" (),该符号在函数 "private: virtual void __thiscall CGAL::Qt_widget_zoomrect::activating(void)" () 中被引用
cgalqt-vc80-mt-s.lib(Qt_widget_standard_toolbar.obj) : error LNK2019: 无法解析的外部符号 "public: static class QColor & Qt::green" (),该符号在函数 "private: virtual void __thiscall CGAL::Qt_widget_zoomrect::mouseMoveEvent(class QMouseEvent *)" () 中被引用
Release/polygon_2.exe : fatal error LNK1120: 12 个无法解析的外部命令
生成日志保存在"file://c:\Program Files\CGAL-3.3.1\demo\Polygon\Release\BuildLog.htm"
polygon_2 - 46 个错误,3 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
Have a nice day!
xam huang
--
-------------------------------------------------------------
From炎黄屹立@hust.edu.cn
Current Research Interests:
★Rapid Prototyping & FDM & SLM & 3DP & SLA & LOM
★CAD/CAM/CNC
★Robotic
★Laser Process
★New Product Development
★Natural Computing:GA & ACS
★Neurosensor
QQ:83456840
E-mail & MSN:
Tel:86-27-63960910
Fax:86-27-87548581
白云深处有人家,黄鹤故里育英才!
--
-------------------------------------------------------------
From炎黄屹立@hust.edu.cn
Current Research Interests:
★Rapid Prototyping & FDM & SLM & 3DP & SLA & LOM
★CAD/CAM/CNC
★Robotic
★Laser Process
★New Product Development
★Natural Computing:GA & ACS
★Neurosensor
QQ:83456840
E-mail & MSN:
Tel:86-27-63960910
Fax:86-27-87548581
白云深处有人家,黄鹤故里育英才!
- help:demo/polygon_2 errors with vc80 and qt3.3, xam huang, 03/27/2008
Archive powered by MHonArc 2.6.16.