Try to remove the .DEF file from your project and add the following to "Project Options", "Linker parameters":

--def dllmain.def

I have no idea how Dev-C++ works - just googling.