since there is no real tutorial on how to setup ImGui & SDL2, I came here to find answers.
I just have to paste ImGui file into my include folder to setup it right ? At least, it is what the ImGui readme file says.
When i try this :
ImGui::Begin("test");
I have this error :
undefined reference to `ImGui::Begin(char const*, bool*, int)
Code block do autofill me with ImGui functions when I start to write 'i'. Also when I do #include other files (ImGui_draw, etc. ...), I got only redefinition problems.
=> That's why my question sis lighty different from the already answered following question :
What is an undefined reference/unresolved external symbol error and how do I fix it?
So please do not close this question. I'm looking for a solution from 2 day now and a question here is my only solution left. I will have to give up on ImGui if this question is closed.. I'm truly clueless.
Could this error be due to a conflict with SDL2's opengl ? But in this case, shouldn't just the program crash instead ?
EDIT : Now this error is solved(I used to work with an IDE who include itself the files in my include folder, I didn't knew code block didn't), I have my program launching but nothing related to ImGui happens (as expected, I didn't figured out yet how to mix SDL2 & ImGui) and another error happens now when I quit my SDL2 window :
The program crashes and display the following in the console :
Assertion failed: g.Initialized, file C:\(...)\imgui.cpp, line 3882
Some random testes: If I use ImGui before my main loop it crashes there. Same inside the loop.