What flags to compile without CMake, only with g++ via command line? #262
-
I tried
But without success ... |
Beta Was this translation helpful? Give feedback.
Answered by
ArthurSonzogni
Nov 19, 2021
Replies: 1 comment 2 replies
-
I highly recommend using cmake. If you don't, here is the answer: Assuming FTXUI is installed under /usr/local: # Build:
/usr/bin/c++ -c -I/usr/local/include -std=c++17 -o main.cpp.o main.cpp
# Link:
/usr/bin/c++ -o main main.cpp.o /usr/local/lib/ftxui-component.a /usr/local/lib/ftxui-dom.a ftxui-screen.a -lpthread Or combined: /usr/bin/c++ -I/usr/local/include -std=c++17 -o main main.cpp /usr/local/lib/ftxui-component.a /usr/local/lib/ftxui-dom.a ftxui-screen.a -lpthread |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ArthurSonzogni
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I highly recommend using cmake. If you don't, here is the answer:
Assuming FTXUI is installed under /usr/local:
Or combined: