|
From: SONE T. <ts...@cm...> - 2000-11-28 12:21:59
|
Hi, On Tue, Nov 28, 2000 at 11:41:09AM -0800, Mark Jordan wrote: > Hi, > I'm trying to compile a program and I'm getting undefined > references errors, but I can't see why, especially for > InitCommonControls(), SetTextColor() and SetBkColor() > etc, as I've linked in gdi32 and comctl32. If I omit the > gdi32 library altogether, I get lots more GDI related uresolved > errors, so that proves the linker is actually using it. > g++ > app.cpp -oapp.exe -g -Wall -DOPT_EXPORT= -fstack-check -fexceptions -fvtable > -thunks -Lc:/progra~1/devcpp/lib -I. -Id:/project/libs -Ic:/progra~1/devcpp/ > include > -Ic:/progra~1/devcpp/include/g++ -lgdi32 -lcomctl32 > d:/project/libs/gui/lib/guiw_d.a Try put -lgdi32 -lcomctl32 *after* your library. The order matters. -- Takeshi |