Hi All, I have a class which uses Graphics unit. Now I would like to do some test of this class on command line, which does NOT require graphics support.
That is, suppose my class looks like this: TMyClass public procedure Generate; //does NOT use graphics procedure Paint; //uses graphics end; now I want to test the Generate method. I write a new program like this: program test; {$mode objfpc}{$H+} uses myclass; begin end. The compiler complains that Graphics unit cannot be found. How can I do such test with just vi and fpc on command line? Thanks! Xiangrong
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus