Undefined reference to ImageList_Create

Hi
I am trying to create an ImageList object but I get this preprocessor error


obj\Release\main.o:main.cpp|| undefined reference to `ImageList_Create@20'|
obj\Release\main.o:main.cpp|| undefined reference to `ImageList_Add@12'|


I have the <commctrl.h> library included. _WIN32_IE is defined as 0x0501 (and even if I increase it the problem persists). The IDE (CodeBlocks) is supposed to have the .lib file already linked (I am not sure, you tell me). I can create any commctrl control but when I get to this point, of creating image lists, I get this.

What do you believe?
Thanks!
This is worst than I thought
I tried to InitCommonControls() and I get this

obj\Release\main.o:main.cpp|| undefined reference to `InitCommonControls@0'|


It seems like my .lib file is not properly linked or something. Anyway, I can create STATIC, TEXT, BUTTON, TREEVIEW and any kind of control.
O.K. I had to link to the commctl32.lib
Topic archived. No new replies allowed.