Tuesday, July 28, 2009

C++ Dll help?

I want to learn about dlls .I made a simple one in DEV c++ .


I made a program that imports a function from the dll ,but i got [Linker error] undefined reference to `_imp__add' " .How do I make the pogram "be aware" of the dll?

C++ Dll help?
You have to link your program to the DLL, you should be able to do this in the Dev C++ IDE.
Reply:In static linking, you need to either explicitly link with DLL or the DLL's import library, or you can place these files in the lib path of your compiler.


No comments:

Post a Comment