On Thu, May 17, 2012 10:11, dhkblas...@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


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to