problem with undefined reference
i'm trying create a simple window with a listview control, and i keep having problems with undefined references.
i'm using mingw 4.5.0, already have WINVER, _WIN32_WINNT, and _WIN32_IE defined, necessary headers included and the correct lib files linked (i think),
here's the error output from compiler:
here's the command i use to compile:
C:\Users\User\AppData\Local\Temp\ccw9OFo5.o:main.cpp:(.text+0x210): undefined reference to `InitCommonControlsEx@4'
C:\Users\User\AppData\Local\Temp\ccw9OFo5.o:main.cpp:(.text+0x2c3): undefined reference to `SetWindowTheme@12'
collect2: ld returned 1 exit status
any idea what i'm doing wrong?
g++ -static-libstdc++ -Wall -Wl,-subsystem,windows -I. -lcomctl32 -luxtheme main.cpp -o test.exe > o.txt 2>&1