Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Error with CLI library #230

Open
FillePiano opened this issue Sep 10, 2022 · 0 comments
Open

Error with CLI library #230

FillePiano opened this issue Sep 10, 2022 · 0 comments

Comments

@FillePiano
Copy link

I get this error when trying to build the project:

[2/2] Linking CXX executable src/intro
FAILED: src/intro
: && /usr/bin/c++ -O2 -g -DNDEBUG -fsanitize=address,leak,undefined src/CMakeFiles/intro.dir/main.cpp.o -o src/i
d9a98f4c14b042a0cc7d6c663f5/lib/libspdlog.a  /home/obm/.conan/data/fmt/8.1.1/_/_/package/0dab009e164b61a28f957a6
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o: warning: relocation against `_ZTVN3CLI10ConfigBaseE' in read-o
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x558): undefined reference to `typeinfo for CLI::Co
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x5b8): undefined reference to `typeinfo for CLI::Co
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x618): undefined reference to `typeinfo for CLI::Co
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x678): undefined reference to `typeinfo for CLI::Co
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x6d8): undefined reference to `typeinfo for CLI::Co
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x738): more undefined references to `typeinfo for C
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x1638): undefined reference to `typeinfo for CLI::F
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x1698): undefined reference to `typeinfo for CLI::C
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x1cf8): undefined reference to `typeinfo for CLI::C
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o:(.data.rel+0x1d58): undefined reference to `typeinfo for CLI::F
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o: in function `CLI::ConfigBase::ConfigBase()':
/home/obm/.conan/data/cli11/2.2.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/CLI/ConfigFwd.hpp
/usr/bin/ld: /home/obm/.conan/data/cli11/2.2.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/CLI/
/usr/bin/ld: /home/obm/.conan/data/cli11/2.2.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/CLI/
/usr/bin/ld: src/CMakeFiles/intro.dir/main.cpp.o: in function `CLI::Formatter::Formatter()':
/home/obm/.conan/data/cli11/2.2.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/CLI/FormatterFwd.
/usr/bin/ld: /home/obm/.conan/data/cli11/2.2.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/CLI/
/usr/bin/ld: /home/obm/.conan/data/cli11/2.2.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/CLI/
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Also, I am new to C++. Every time I build, will I run the build.sh script? Or is there a faster way to build?

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

No branches or pull requests

1 participant