How to use a custom library
Hi I am trying to use a custom DLL with Dev c++,
I have the Dll , the .h file and the .lib file
This is what I am doing
#include <windows.h>
#include "XXControls.h"
........
RedrawButton(.. , ..) ;
And am getting this linker error
[Linker error] undefined reference to `RedrawButton@8'
How can I use a custom dll like this ?
Re: How to use a custom library
You need to link to the library. So add <customlibrary>.lib to your linker settings.
Re: How to use a custom library
Re: How to use a custom library
Sorry, I never used Dev C++, so I don't know the exact steps to do this. Try to find the linker settings and then find where you could add additional libraries like <customlibrary>.lib.