ggerganov / imtui

ImTui: Immediate Mode Text-based User Interface C++ Library
https://imtui.ggerganov.com
MIT License
2.94k stars 123 forks source link

Trouble linking ImTui #31

Closed LouChiSoft closed 3 years ago

LouChiSoft commented 3 years ago

Apologies if this is a bit of a noob comment, I am a bit new to Linux apps. I am trying to create an app via WSL and every time I try to use the ImGui or ImTui functions I get an undefined reference to a bunch of ImGui functions. I followed the build instructions and then used make install to install it in the /usr/ directory.

The command I am using to build my program is: g++ -g Main.cpp -I/usr/local/include/imgui -I/usr/local/include/imtui -limtui-ncurses -limtui -lncurses -o Test

And the function I am trying to call is IMGUI_CHECKVERSION()

Edit: Fixed it, it was me being dumb and not including the original ImGui Files Edit 2: Also figured out that I need to not link against OG imgui files and instead run the cmake file for Imgui-for-imtui