I tried compiling FreeImage library, imported trough VS Import, and selecting the mingw tool-chain.
The main (only) issue was that non of the libs ware added to the project, so I have to add them manually.
After that the compilation went smoothly.
However, I was unable to link against the compiled dll, no matter what I tried! (unresolved etc..)
For a test I done the same procedure in code::blocks. Imported the solution (again manually adding all libs) and disabled the "make import lib option", just to get close to the CL scenario.
The code compiled and I have no problems compiling and linking to that dll (from CL projects including of course )
I tried all compile and declaration flags I can think of with no success at all

The closes thing that comes into mind is the colling convention to be the root of the problem. Or the defines that export the functions... I really dont have a clue.
Considering both IDEs share the same tool-chain its some config that CB does and CL does not...or the reverse.
Im asking for advise.
Thank you.
MihailNaydenov
PS Dummy dlls I made and linked against in CL went OK