error LNK2019 by myDLL

Hi everybody:
I have created my first DLL. I have a little test program to check it, but I get that error messages for all references of the functions of my dll, although I have linked my dll in Project->Properties->Linker->Input->Additional Dependencies: myDLL.lib und the path in Project->Properties->Linker->General->Additioal Library Directories: ......

What I have forgotten???

Thaks in advance!!!

garrido
Sounds like you've made a dynamic library (DLL), but are trying to treat it as a static library (lib). If you make a static library, you link to it whilst building and it gets built into your executable. If you make a dynaimc library (a dll), you link to it dynamically, at runtime, and the settings in your IDE have nothing to do with it.
I am not very competent on the subject, so I am guessing here. You have set the library dependency ok, but have you provided __declspec(dllimport) in some header file for the identifiers that have to be imported from the DLL? Or may be you use module-definition file instead?

http://msdn.microsoft.com/en-us/library/3y1sfaz2.aspx
http://msdn.microsoft.com/en-US/library/34c30xs1%28v=VS.80%29.aspx
http://msdn.microsoft.com/en-us/library/28d6s79h%28v=vs.80%29.aspx

One of the above links says "there are linker options that can be used instead of module-definition statements", but I sure as heck don't know what they mean.

Regards
Topic archived. No new replies allowed.