hey!
can someone explain me why removing the -I flags generates a linking error? and with only two functions
g++ -I./ftxui/include -o main.cpp.o -c src/main.cpp
when i run this command to generate the object file, everything works, but without the -I flag, i get this linking error when i try to link my app:
main.cpp:(.text+0x7a3): undefined reference to `ftxui::window(std::shared_ptr<ftxui::Node>, std::shared_ptr<ftxui::Node>, ftxui::BorderStyle)'
/usr/bin/ld: main.cpp.o: in function `main':
main.cpp:(.text+0xec3): undefined reference to `ftxui::size(ftxui::WidthOrHeight, ftxui::Constraint, int)'
/usr/bin/ld: main.cpp:(.text+0xf9a): undefined reference to `ftxui::Screen::ToString[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
make: *** [Makefile:3: build] Error
include folder doesn't contains implementation of Screen::ToString, only declaration:
class Screen {
public:
// ...
std::string ToString();
// ...
}