I wonder if anyone has noticed this problem with the dynamic link libraries that are built using gcc compiler.
Dll's are built, but the problem is that when the Dll is loaded in memory, the function DllMain never gets called. This is the main entry point which is called by the operating system, where we receive an instance handle, so it is absolutely important that this function be called.
What actually happens is that the functions defined in the dll are directly called.
I am sure this problem might have been noticed before, please help me if anybody has an answer.