i use CodeBlocks with mingw compiler.
for use 'Graphics.h', i must add the 'libbgi.a' library.
but i continue with some compiler\linker error: "ld.exe||cannot find -lbgi|".
yes i add the linker options:
"-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32"
heres my testing code:
#include <iostream>
#include <graphics.h>
#include <conio.h>
using namespace std;
int main()
{
int gdriver = DETECT, gmode;
int x1 = 200, y1 = 200;
int x2 = 300, y2 = 300;
//clrscr();
initgraph(&gdriver, &gmode, NULL);
line(x1, y1, x2, y2);
getch();
closegraph();
return 0;
}
(i need find, too, the another 'conio.h' too)
maybe the problem it can the library compatibly