Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile on windows (duplicate symbols linker errors) #1854

Open
arsdever opened this issue Jul 10, 2024 · 4 comments
Open

Fails to compile on windows (duplicate symbols linker errors) #1854

arsdever opened this issue Jul 10, 2024 · 4 comments

Comments

@arsdever
Copy link

Brief Description

The library won't compile. Fails to build the project CppSharp.Parser.CLI due to multiple linker errors

OS: Microsoft Windows 11 Pro 10.0.22631
Compiler: Visual Studio version 2022 (v143) (Community)

I have v142 (2019) installed as well (as the documentation says)

Build started at 7:31 PM...
1>------ Build started: Project: CppSharp.Parser.CLI, Configuration: Release x64 ------
1>draco.lib(float_points_tree_encoder.cc.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>draco.lib(float_points_tree_encoder.cc.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>draco.lib(encoder_buffer.cc.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>draco.lib(encoder_buffer.cc.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>draco.lib(direct_bit_encoder.cc.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>draco.lib(direct_bit_encoder.cc.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>draco.lib(rans_bit_encoder.cc.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>draco.lib(rans_bit_encoder.cc.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(html_tag.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(html_tag.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(css_length.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(css_length.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(web_color.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(web_color.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(background.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(background.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(style.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(style.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(css_selector.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(css_selector.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(stylesheet.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(stylesheet.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(element.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(element.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(box.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(box.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(table.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(table.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(html.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(html.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(document.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(document.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(iterators.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(iterators.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_before_after.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_before_after.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(num_cvt.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(num_cvt.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(media_query.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(media_query.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(utf8_strings.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(utf8_strings.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_text.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_text.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_image.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_image.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_table.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_table.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_td.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_td.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_link.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_link.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_style.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_style.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_comment.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_comment.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_cdata.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_cdata.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_anchor.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_anchor.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_tr.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_tr.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_li.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>litehtml.lib(el_li.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomscriptelements.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomscriptelements.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldompath.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldompath.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomitem.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomitem.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomattachedinfo.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomattachedinfo.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomastcreator.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomastcreator.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomlinewriter.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomlinewriter.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomcomments.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomcomments.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomelements.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomelements.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldommoduleindex.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldommoduleindex.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomexternalitems.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomexternalitems.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomtop.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomtop.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldommock.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldommock.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomoutwriter.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomoutwriter.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomfieldfilter.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomfieldfilter.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomcompare.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomcompare.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomtypesreader.cpp.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>Qt6QmlDom.lib(qqmldomtypesreader.cpp.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>MSVCRT.lib(throw_bad_alloc.obj) : error LNK2005: "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z) already defined in double-conversion.lib(double-conversion.dll)
1>MSVCRT.lib(throw_bad_alloc.obj) : error LNK2005: "public: virtual char const * __cdecl std::exception::what(void)const " (?what@exception@std@@UEBAPEBDXZ) already defined in double-conversion.lib(double-conversion.dll)
1>   Creating library ..\..\..\bin\Release_x64\CppSharp.Parser.CLI.lib and object ..\..\..\bin\Release_x64\CppSharp.Parser.CLI.exp
1>..\..\..\bin\Release_x64\CppSharp.Parser.CLI.dll : fatal error LNK1169: one or more multiply defined symbols found

Additional question

Is it possible to compile using clang-cl?

@tritao
Copy link
Collaborator

tritao commented Jul 10, 2024

Looks like you are trying to link in mixed projects that are not CppSharp-related, so the error looks somewhat expected?

Not really sure what you are trying to do.

@arsdever
Copy link
Author

I followed the exact instructions in the build guide. Don't know where the additional dependency comes from.

TBH I also was surprised since I couldn't find any 'draco' lib dependency in the solution. Also, I never used, installed or worked with draco. So, I'm wondering where that name comes from.

@tritao
Copy link
Collaborator

tritao commented Jul 10, 2024

Very weird, we don't use any of the listed libraries in CppSharp, if they are not in the solution then must be some really weird toolchain issue.

@arsdever
Copy link
Author

Do you know where do I start looking for an issue with the toolchain? I have no clue where to start neither I know what to google to find out. I don't want to uninstall VS since I have some work ongoing in parallel. I don't want to ruin everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants