link error while calling ImGui functions #6455
Closed
Dnurr
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 1 comment
-
This error has been happening over and over for 40+ years for C/C++ developers and the answer is the same in 90% of cases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm quite new with Dear ImGui...
When I build my project, the Visual Studio 2022 C++ compiler doesn't throw any errors, but I get it when I start a debug session.
Here I post the link errors that I get:
When I try to call ImGui functions in my main (or other) function (I know this isn't the entire code it's only an example for throwing link errors and show you it):
I set my main project's settings to communicate with imgui folder (where could be found all .h and .cpp files)
Lastly, I built ImGui .cpp files into a .lib file with CMake and set it in Additional Dependecies.
Thank you in advance.
EDIT: I had to add the entire path of .lib file.
Beta Was this translation helpful? Give feedback.
All reactions