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

lib/liblinedesc.so编译问题 #30

Open
tiandajiang1 opened this issue Jan 4, 2023 · 2 comments
Open

lib/liblinedesc.so编译问题 #30

tiandajiang1 opened this issue Jan 4, 2023 · 2 comments

Comments

@tiandajiang1
Copy link

[100%] Linking CXX shared library ../lib/liblinedesc.so
CMakeFiles/linedesc.dir/build/CMakeFiles/3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.o: In function main': CMakeCXXCompilerId.cpp:(.text.startup+0x0): multiple definition of main'
CMakeFiles/linedesc.dir/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text.startup+0x0): first defined here
CMakeFiles/linedesc.dir/build/CMakeFiles/3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x18): multiple definition of info_compiler' CMakeFiles/linedesc.dir/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x18): first defined here CMakeFiles/linedesc.dir/build/CMakeFiles/3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x10): multiple definition of info_platform'
CMakeFiles/linedesc.dir/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x10): first defined here
CMakeFiles/linedesc.dir/build/CMakeFiles/3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x0): multiple definition of info_language_dialect_default' CMakeFiles/linedesc.dir/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x0): first defined here CMakeFiles/linedesc.dir/build/CMakeFiles/3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x8): multiple definition of info_arch'
CMakeFiles/linedesc.dir/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x8): first defined here
collect2: error: ld returned 1 exit status
CMakeFiles/linedesc.dir/build.make:265: recipe for target '../lib/liblinedesc.so' failed
make[2]: *** [../lib/liblinedesc.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/linedesc.dir/all' failed
make[1]: *** [CMakeFiles/linedesc.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

在电脑上和tx2上编译均报以上错误,是怎么回事?

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