PDA

View Full Version : unit graph in free pascal



BXCracer
September 12th, 2008, 06:53 PM
Hi,
when trying to compile a program that uses graph, i get a compile error that says that it can't find it. Tryed to install fp-units-gfx , but it didnt seems to help. What should i do ?

cmay
September 12th, 2008, 07:22 PM
hi.
the unit graph is depreciated. there is written another unit for free pascal. you can find it and the doc in the free pascal home page.
edit:
the other unit is gfx which should have replaced unit graph.
as alternative units there is these. also
http://www.freepascal.org/contrib/db.php3?category=Graphics

but as far as i have seen in documentation the free pascal team recommends not using unit graph.
in the fp-ide you can set up the compiler path also. graph is a dos unit original i do not think its working under linux either. hope that helps.