Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker error #9

Closed
grickel opened this issue Aug 5, 2015 · 1 comment
Closed

Linker error #9

grickel opened this issue Aug 5, 2015 · 1 comment

Comments

@grickel
Copy link

grickel commented Aug 5, 2015

Error 1 error LNK2019: unresolved external symbol _NFD_OpenDialog referenced in function _main C:\Users\tsquare\User File's\Programing\C++ Form Prac\Nativefiledialog test\Nativefiledialog test\Source.obj

Sigh... I use Visual Studio. I go into proprieties -> C/C++ -> General -> Additional Include Directories -> src and src/libs

<nfd.h> comes up yet I can't get past the error. What should I do?

@mlabbe
Copy link
Owner

mlabbe commented Aug 5, 2015

This is happening because you are not linking the native file dialog library against your EXE.
You need to:

  1. Specify the search path
  2. Link against the native file dialog .lib file.

And before any of this, you have to generate the .lib file by building Native File Dialog with Scons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants