rair Posted February 1, 2008 Report Posted February 1, 2008 Am instalat dev-c++ si am incercat urmatorul cod care ar trebui sa afiseze un cerc:#include <graphics.h>int main(void){int a=0,b;initgraph(&a,&b,"d:\\borlandc\\bgi");circle(100,100,20);}Problema este ca nu merge.Da eroarea:graphics.h: No such file or directory.Asa si este, am cautat in dev-c++ si nu are graphics.h .Ce sa fac? Quote
SirGod Posted February 1, 2008 Report Posted February 1, 2008 cauta fisierul pe google si baga-l langa celelalte fisiere header]'incearca:http://www.iucr.org/iucr-top/cif/software/rasmol/src/graphics.hhttp://www.ime.usp.br/~pf/Roberts/C-library/standard/cslib/graphics.h Quote
tw8 Posted February 1, 2008 Report Posted February 1, 2008 Downloadezi headerul.Il poti lua de aici. Quote
rair Posted February 1, 2008 Author Report Posted February 1, 2008 @tw8 am luat graphics.h de unde ai zis si a mers include da acum apare alta eroare.Am deschis un proiect nou, o foaie noua si am facut setarile la optiuni proiect exact cum zice in linkul dat de tine: am pus la parametri-> editor de legaturi :-lbgi-lgdi32-lcomdlg32-luuid-loleaut32-lole32si am scris urmatorul cod:#include <graphics.h>using namespace std;int main(){initwindow(800,600);circle(200,300,600);while(!kbhit());closegraph();return 0;}Cand dau compilare da eroarea: cannot find -lbgi Creca este o eroare la setarile facute de mine Daca nu pun nimic la optiuni proiect parametri-> editor de legaturida eroarea : [Linker error] undefined reference to `initwindow' [Linker error] undefined reference to `circle' [Linker error] undefined reference to `closegraph' Sper sa ma poti ajuta... Quote