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

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

Open
wesleywong1995 opened this issue Oct 8, 2022 · 4 comments
Open

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

wesleywong1995 opened this issue Oct 8, 2022 · 4 comments

Comments

@wesleywong1995
Copy link

/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
Copy link
Author

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

@huangfeidian
Copy link
Owner

我在windows和ubuntu 20.04上没问题啊

@huangfeidian
Copy link
Owner

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

@wesleywong1995
Copy link
Author

wesleywong1995 commented Oct 8, 2022 via email

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