Adding my DLL into a Visual Studio project in C++ -


i working on project involves making dynamic link library, want test in console app in visual studio.

the dll made in visual studio, doesn't have much, few functions in it. i'm not sure if i'm supposed include librarys header in include directories panel in properties, or else

a lot of people i'm supposed add corresponding .lib file in library or reference directory, i'm not sure vs generates .lib file alongside dll. i'm using vs 2015.

i don't have vs in front of me moment, these should general steps set up:

properties->linker->input: your.lib properties->linker->additional library directories: ../your/bin properties->general->compiler->additional include directories: ../your/include 

to build app, dll's api headers must in include compile-time, it's lib files in bin link-time. once have app exe, need dll in same folder exe when executes.

you might want add dll project , app project common solution in vs , add (right click) project dependency app dll. ensures correct order of building, assuming going build dll @ all.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -