Comctl32.lib を GCC (MinGW) を使用して自分のプログラムにリンクすることができません。
GCC 入力:
gcc -o program.exe main.c images.o -lgdi32 -lcomctl32 -mwindows
GCC 出力
main.c: In function 'WinMain':
main.c:120:2: error: unknown type name 'INITCOMMONCONTROLSEX'
main.c:124:9: error: request for member 'dwICC' in something not a structure or union
main.c の関連コード
#define _WIN32_WINNT _WIN32_WINNT_WIN7
#include <windows.h>
#include <commctrl.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmd)
{
Line 120: INITCOMMONCONTROLSEX icex;
Line 124: icex.dwICC = ICC_LISTVIEW_CLASSES;
InitCommonControlsEx(&icex);
}
あなたが提供できる助けや情報をありがとう。私はこれに長すぎて、答えを思いつくことができません。