我想添加一個庫到Eclipse伽利略,它不會工作。如何添加一個庫到Eclipse項目
庫: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 `[email protected]'
和我有函數調用:
TextOut(hdc, 0, 0, TEXT("Hello World!"), 12);
...導致錯誤:
WinMain.o: In function `WndProc':
Z:/mtsts_workspace/MTSTS/Debug/../WinMain.c:88:
undefined reference to `[email protected]'
您是否收到錯誤訊息?如果是這樣,請把它附加到你的問題上? – 2009-08-29 16:01:52