[fpc-pascal] Strange compile error

Sven Barth pascaldragon at googlemail.com
Thu May 17 10:33:25 CEST 2012

On 17.05.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?

It would help if you'd show us how your main program file looks like.


More information about the fpc-pascal mailing list