I am having a problem with getting my Imgui menu that I am creating to work, I have no errors but one, this unresolved external LNK2001. I have everything properly included for this line, and the definition is in d3d9.h which is in my includes. Any help would be appreciated. If anything else needs to be provided LMK.
Asked
Active
Viewed 473 times
0
-
It seems your linker setting (especially linker input setting) is not appropriate. – MikeCAT Jun 29 '20 at 22:16
-
You need (most probably) to link with `d3d9.lib`, see: https://learn.microsoft.com/en-us/windows/win32/api/d3d9/nf-d3d9-direct3dcreate9 – Paul Sanders Jun 29 '20 at 22:17
-
1Building a C++ program is a multi-step process: 1) Edit source; 2) Compile source to object files; 3) Link object files into the executable program. Include (header) files are processed in the compilation to object files. Actually getting the library and fetching the code itself from the library happens when linking. You have a linker error, an error in the last step. I.e. the problem isn't your includes or header file usage. – Some programmer dude Jun 29 '20 at 22:20
-
1Furthermore, please don't post images of text, copy-paste the actual text into the question itself. Please take some time to read [the help pages](http://stackoverflow.com/help), take the SO [tour], read [ask], as well as [this question checklist](https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/). Lastly please learn how to [edit] your question, to include the full and complete build output (also as text) and [how to format] your questions nicely. – Some programmer dude Jun 29 '20 at 22:22
-
Thanks for helping me out, I really appreciate it. I recently just started with c++ and learned it through solo learn, so there are some things I just haven't perfected yet. – Alacrity Jun 30 '20 at 17:39