0 Pluspunkte 0 Minuspunkte

Ich versuche ein GDIPlus Programm mit g++ (MinGW) zu kompilieren.

g++ -lgdiplus main.cpp -IC:\MinGW\include -LC:\MinGW\lib

Aber der Compiler findet das GDI anscheinend nicht.

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cch6kmo6.o: In function `WinMain@16':
D:/Projects/1/main.cpp:23: undefined reference to `GdiplusStartup@12'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cch6kmo6.o: In function `Z15ExitApplicationP6HWND__jjl':
D:/Projects/1/main.cpp:56: undefined reference to `GdiplusShutdown@4'

von  

1 Antwort

0 Pluspunkte 0 Minuspunkte

Setze den Parameter -lgdiplus ans Ende des Befehl.

g++ main.cpp -IC:\MinGW\include -LC:\MinGW\lib -lgdiplus
von (944 Punkte)