I got such the same problem, when I try to compile and run some of my window
based projects, telling DevCpp to generate a console for debugging purposes.
At this time, I must tell the linker to "include" some of libs to get my
program running, otherwise I get "cannot link to..." linker errors.
In the cas you are telling us, if you talk about "CreateBrushIndirect" API
func, you must tell the compiler to link with gdi32.lib. Make sure you have
the -lgdi32 command in the linker option edit control, in project options
window.
Send me a zip of your projects file, I might see what's happening and help
you.
Kind regards
--
Seb
|