A way to include the all source files so my professor can run them using only gcc #601
-
Our assignment is to create a C++ game that runs entirely in the terminal, particularly Windows Terminal. And components like Menu and V-flow would be a perfect fit for the game. All FTXUI examples run flawlessly on Windows Terminal after using CMake and make to build, but our game can only use g++ commands to compile and run. Therefore, I was wondering if there is a way to include the source files of some modules and link them like regular header files so that the entire game and FTXUI components can be compiled with g++ only. I tried putting Log
Thanks in advance and thanks for making this amazing library. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, I think you forgot to link against ftxui libraries. Could you try adding 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 |
Beta Was this translation helpful? Give feedback.
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
Link