[Noob error] Linking/Compilation problems

Hi, i’m new to c++ and dear imgui and somehow thought it was agood idea Learning both at the same time.

My issue is, I have a small hello world, with ImGui::text function in it to try out the Library, but compiling it fails (undefined reference to that function). I’m using the most basic terminal compilation, with gcc .

If I use my basic C knowledge i’d say I’m compiling my main.cpp just fine, but not my libs, even though they linked with an include… should I use a makefile in this case? or is there a simple line command to do that?

thanks in advance for helping a noob!