|
-
April 6th, 2009, 06:28 AM
#1
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 ?
-
April 6th, 2009, 08:05 AM
#2
Re: How to use a custom library
You need to link to the library. So add <customlibrary>.lib to your linker settings.
-
April 7th, 2009, 01:28 AM
#3
Re: How to use a custom library
-
April 7th, 2009, 08:35 AM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|