[Linker error] undefined reference to 'CreateSolidBrush@4'

Hi,

DevC++ gave the following error:

[Linker error] undefined reference to 'CreateSolidBrush@4'

Windows does define a reference to CreateSolidBrush(). So what does this error mean?
Last edited on
If you are working within the constraints of a project set up as a console mode project, its likely the project isn't trying to link against gdi32.lib, which is where, I believe, CreateSolidBrush() would be located. If that's the case, you need to explicitely link against that export lib or use a GUI based project, which would automatically link against gdi32.lib, user32.lib, and kernel32.lib.
Topic archived. No new replies allowed.