Udv!
Letoltottem az alcimben szereplo allomanyt: bgi_library.tar.gz
kicsomagoltam, utana make install megvolt.
Ezutan csinaltam egy halal egyszeru kis peldat:
Code:
# include „graphics.h”
# include
int main()
{
int gd,gm;
gd=VGA;gm=VGAMED;
initgraph(&gd,&gm,””);
circle(200,150,50);
getch();
closegraph();
return(0);
}
elmentettem elso.c neven.
utana:
Code:
morzel:~/Egyetem$ gcc -o elso elso.c
elso.c: In function `main’:
elso.c:11: error: `VGA’ undeclared (first use in this function)
elso.c:11: error: (Each undeclared identifier is reported only once
elso.c:11: error: for each function it appears in.)
elso.c:11: error: `VGAMED’ undeclared (first use in this function)
elso.c:23:2: warning: no newline at end of file
morzel:~/Egyetem$
Valamit kihagytam. csak meg nem tudom, hogy mit, bar erzem, hogy valami primitiv dolgot. valaki meg tudna mondani, hogy mit?
egyebkent a bgi_library.tar.gz a graphics.h-t es a libBGISm.a-t tartalmazza. elvileg a borland C-ben megtalalhato grafikus fuggvenytar lenne.
Pls. gyors help, mert egy targyamhoz kellene meg ma este kodolnom
Morzel
legutóbbi hsz