Link a VC++ static lib to Dev C++ program

Hi, I have problems to compile a c++ program that uses a static lib that I made in VC++, I've use vc because I needed CImage class.
If I export from VC++ as a dynamic library then my program compiles with that lib with no problems... But I need my program to be just 1 .exe file.
So the problems arrives when I export from VC as static library and import it to my Dev C++ program. When I compile I get this error:
[Linker error] undefined reference to `_imp__SaveToJPG'

I've exported from VC like this
extern "C" __declspec(dllexport)void SaveToJPG(HBITMAP bmp,const char *path)
and imported in DevC++ like this:
extern "C" __declspec(dllimport) void SaveToJPG(HBITMAP bmp,const char *path)

Any suggestions?

Thanks.
Topic archived. No new replies allowed.