Error 127 on Devcpp - .def file?

 

Dear Community,

I have read the previous posts existing in this forum regarding error 127 on DLL function calls but I'm unable to get a solution for my case. I hope you can help me.

I'm coding a DLL file in Dev-cpp with a set of functions, I understand that "error 127" is caused by the non-existent def file, so I created a def file (a text file and then changed to .def : def_file.def ) in the following structure:

LIBRARY MyDLL.dll

EXPORTS

Function1

Function2

Function3


Then I go to Project -> Project Options -> Parameters and under Linker I add: --def def_file.def

However, when I compile, the compiler sends a warning saying:

Warning: resolving _Function1 by linking to _Function1@48

Warning: resolving _Function2 by linking to _Function2@80

Warning: resolving _Function3 by linking to _Function3@80

What would be the reason on this?

Each post will be greatly appreciated.

Thanks

 
Solved. Remember not to name functions very similar. This was the problem