How would I do this using Dev C++? In the project settings, Dev C++ lets me add a library, but it has to be .a or .lib format. Can I convert the .def (which I have) to .lib or .a somehow??
read this on '.def' files ( http://msdn.microsoft.com/en-us/library/28d6s79h(VS.80).aspx ). they are not, and can not be converted to an actual library. moreover, think about what it is that you are asking. you have a Dynamic Link Library, '.lib' and '.a' are static libraries, therefore you have to have them at compile time. that is the whole point of having a DLL is that it is not required to compile the program, only to run it. the '.def' file provides information to the compiler about what functions/parts of the library you are able to use at run time. optionally, you can use function pointers and LoadLibrary()/FreeLibrary() to dynamically load/use the DLL at runtime, then there is no need for a '.def' file.
ps following are two msdn articles that should provide you with all the info you need on run-time vs load-time linking of DLL's, hope I have helped! :)