Hello lamont and all Dev-C++ users,
Tuesday, February 4, 2003, 10:35:01 PM, lamont wrote as follows:
l> Hello,
l> I'm trying to compile some example code and I'm getting the following
l> linker errors with Dev c++.
l> [Linker error] undefined reference to `GetStockObject@4'
l> the code that this refers to is:
l> winclass.hbrBackground = (HBRUSH)GetStockObject (WHITE_BRUSH);
l> Does anyone know where this function is defined?? I had similar problems
l> with the playsound function, but putting "-lwinmm" in the linker options
l> fixed this.
From Platform SDK:
...
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
--
regards, Zodiaq
|