Sign in to follow this  

Linking in Dev C++

This topic is 4279 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I've created a small DLL and am having issues linking it to a test project. I am using Dev C++ on Windows XP. Upon compilation of my test project(my DLL compiles fine) I get the message "MyLib: No such file or directory." That's pretty well explained in itself. I go 'Project>Project Options>Parameters' and tried to add many different things into the linker box. 'libMyLib.a' 'MyLib.o' the actaul paths to them 'C:\My documents...' and other things. I am including it to my file as: #include "MyLib" and when that didn't work: #include <MyLib> Any help would be most welcome!

Share this post


Link to post
Share on other sites
#include "MyLib.h" [wink] When including the DLL header file, you have to have that .h there, unless your file does not (which I'd assume if you made a .DLL, the header file does have the .h on it). Make sure you copied over the header file though to the current project!

Share this post


Link to post
Share on other sites

This topic is 4279 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this