[fpc-pascal] Strange compile error
Tomas Hajny
XHajT03 at hajny.biz
Thu May 17 10:44:40 CEST 2012
On Thu, May 17, 2012 10:11, dhkblaszyk at zeelandnet.nl wrote:
Hi,
> I have a simple application that uses glut and opencv.
> However as soon as I add the opencv wrapper unit to the uses clause I
> get:
>
> video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM"
> found
>
> The compiler does not recognize the main unit anymore. I have
> searched the opencv.pas file but I could not find anything strange
> there. Has anyone got an idea of what might be happening?
I'd assume a different video.pp file is found instead of the right one
(possibly because the compiled version of unit video cannot be used for
some reason). Try compiling with -vt to find out what happens there.
Tomas
More information about the fpc-pascal
mailing list