Answer the question
In order to leave comments, you need to log in
Why can't I link .cpp files to my SFML project?
I write in VS Code, a project with SFML ImGui, without ImGui the project compiles, but not with ImGui.
I connected imgui according to this guide - here
all: clean compile link
clean:
cls del *.o
compile:
g++ -c *.cpp -ISFMLImGui/include -ISFMLImGui/include/ImGui -ISFMLImGui/include/ImGui/imgui-sfml-master
link:
g++ *.o -o main.exe -LSFMLImGui/lib -lsfml-graphics -lsfml-window -lsfml-system -lopengl32 -lfreeglut
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question