我正在尝试向 Eclipse Galileo 添加一个库,但它不会成功。
库:gdi32.lib -> 在 MinGW 中:libgdi32.a
无论我尝试什么,它都不起作用。谁能告诉我到底要输入什么来完成这个?
细节:
我有函数调用:
wndclassex.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
...导致错误:
WinMain.o: In function `WinMain':
Z:/mtsts_workspace/MTSTS/Debug/../WinMain.c:29:
undefined reference to `GetStockObject@4'
我有函数调用:
TextOut(hdc, 0, 0, TEXT("Hello World!"), 12);
...导致错误:
WinMain.o: In function `WndProc':
Z:/mtsts_workspace/MTSTS/Debug/../WinMain.c:88:
undefined reference to `TextOutA@20'