If foo.dll contains fooFn() and fooFn() is defined in fooHeader.h, do I need to link against the library as well as defined the header file?
I had a function defn in .h file and execution in a .dll. Linking with the target libs wasn't sufficient. It kept giving compilation errors for the function defn, which makes since because linking resolves for the function execution and header file resolves the declaration. (Let me know if otherwise)
Is the other way true? If I include the .h file, do I still have to mention the targetlibs in makefile? Because by including .h file and the appropriate path to the .h file in makefile, compiler should find the .h file, build and link with it.