meta icon indicating copy to clipboard operation
meta copied to clipboard

编译测试用例的时候链接错误

Open wesleywong1995 opened this issue 3 years ago • 4 comments

/usr/bin/ld: CMakeFiles/type_print.dir/type_print.cpp.o: in function recursive_dump_type_info(CXType)': type_print.cpp:(.text+0x113): undefined reference to clang_isConstQualifiedType' /usr/bin/ld: type_print.cpp:(.text+0x13e): undefined reference to clang_isVolatileQualifiedType' /usr/bin/ld: type_print.cpp:(.text+0x164): undefined reference to clang_getPointeeType' /usr/bin/ld: type_print.cpp:(.text+0x194): undefined reference to clang_isConstQualifiedType' /usr/bin/ld: type_print.cpp:(.text+0x1de): undefined reference to clang_getTypeDeclaration' /usr/bin/ld: type_print.cpp:(.text+0x204): undefined reference to clang_getTypeDeclaration' /usr/bin/ld: type_print.cpp:(.text+0x312): undefined reference to clang_Type_getNumTemplateArguments' /usr/bin/ld: type_print.cpp:(.text+0x3d6): undefined reference to clang_Type_getTemplateArgumentAsType' /usr/bin/ld: type_print.cpp:(.text+0x482): undefined reference to clang_Type_getNumTemplateArguments' /usr/bin/ld: type_print.cpp:(.text+0x537): undefined reference to clang_Type_getTemplateArgumentAsType' /usr/bin/ld: CMakeFiles/type_print.dir/type_print.cpp.o: in function recursive_print_anything_under_cursor(CXCursor)::{lambda(CXCursor, CXCursor, void*)#1}::operator()(CXCursor, CXCursor, void*) const': type_print.cpp:(.text+0x6f8): undefined reference to clang_getCursorDefinition' /usr/bin/ld: type_print.cpp:(.text+0x717): undefined reference to clang_getCursorType' /usr/bin/ld: type_print.cpp:(.text+0x736): undefined reference to clang_isConstQualifiedType' /usr/bin/ld: type_print.cpp:(.text+0x76d): undefined reference to clang_isVolatileQualifiedType' /usr/bin/ld: type_print.cpp:(.text+0x79c): undefined reference to `clang_getPointeeType'

wesleywong1995 avatar Oct 08 '22 07:10 wesleywong1995

主要是在编译annotation_test的例子的时候

wesleywong1995 avatar Oct 08 '22 07:10 wesleywong1995

我在windows和ubuntu 20.04上没问题啊

huangfeidian avatar Oct 08 '22 13:10 huangfeidian

qian@huangfeidian:~/Github/meta/build$ cat /proc/version Linux version 5.4.0-89-generic (buildd@lgw01-amd64-044) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 qian@huangfeidian:~/Github/meta/build$ cmake .. -- Configuring done -- Generating done -- Build files have been written to: /home/qian/Github/meta/build qian@huangfeidian:~/Github/meta/build$ make -j 8 [ 16%] Built target attr_test [ 40%] Built target meta [ 46%] Built target annotation_test [ 60%] Built target type_print [ 60%] Built target generate_enum [ 73%] Built target generate_behavior [ 73%] Built target generate_attr [ 80%] Built target generate_component [ 86%] Built target generate_property [ 93%] Built target generate_rpc [100%] Built target generate_decode

huangfeidian avatar Oct 08 '22 13:10 huangfeidian

我在wsl2上面测试的

从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送

发件人: huang @.> 发送时间: 2022年10月8日 21:07 收件人: @.> 抄送: @.>; @.> 主题: Re: [huangfeidian/meta] 编译测试用例的时候链接错误 (Issue #2)

我在windows和ubuntu 20.04上没问题啊

― Reply to this email directly, view it on GitHubhttps://github.com/huangfeidian/meta/issues/2#issuecomment-1272315600, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKK53NSHGH6GXKZYUQEIFE3WCFWYTANCNFSM6AAAAAARAEWB6I. You are receiving this because you authored the thread.Message ID: @.***>

wesleywong1995 avatar Oct 08 '22 14:10 wesleywong1995