
Kod koji sledi iz knjige ne funkcioniše.
Citat:
#include <cstdlib>
#include <iostream>
#include <winbgim.h>;
using namespace std;
int main()
{
int gdriver=9, gmode=2;
initgraph(&gdriver, &gmode, "");
setbkcolor(WHITE);
setcolor(BLACK);
cleardevice();
circle(320,240,180);
getch();
closegraph();
return 0;
}
Greške koje pritom prijavljuje su sledeće:
Citat:
[Linker error] undefined reference to `CreateStreamOnHGlobal@12'
[Linker error] undefined reference to `IID_IPicture'
[Linker error] undefined reference to `OleLoadPicture@20'
[Linker error] undefined reference to `PrintDlgA@4'
[Linker error] undefined reference to `PrintDlgA@4'
[Linker error] undefined reference to `GetSaveFileNameA@4'
[Linker error] undefined reference to `GetOpenFileNameA@4'
ld returned 1 exit status
D:\Jovan\Radni\Grafika\Prvi Problem\Makefile.win [Build Error] [Projekt1.exe] Error 1
Molim za pomoć. Hvala unapred.