Skip to content

A way to include the all source files so my professor can run them using only gcc #601

Answered by ArthurSonzogni
PhKhang asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I think you forgot to link against ftxui libraries. Could you try adding -lftxui-screen -lftxui-dom -lftxui-component -lftxui-dom -lftxui-screen

FYI: Cmake generate commands like those:

Build

/usr/bin/c++ \
  -std=c++17
  -I/usr/local/include/ftxui/include \
  -o main.cpp.o \
  -c main.cpp 

Link

/usr/bin/c++ \
  main.cpp.o \
  -o main \
  /usr/local/lib/libftxui-screen.a \
  /usr/local/lib/libftxui-dom.a \
  /usr/local/lib/libftxui-component.a \
  /usr/local/lib/libftxui-dom.a \
  /usr/local/lib/libftxui-screen.a

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ArthurSonzogni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants