Hi,
< snip >
Please read the code behind my hint. I am too lazy today. The reference is clear. Just look it up....
as an non native English speaker, maybe I didn't make my self clear.
The code fragments that I posted, are from an existing fpc package, libusb. The compiler don't have any problem compiling it or any application that is using that package. The "problem" is when I used it in Lazarus.
You can easily reproduce the behavior I'm trying to explain, just by creating an empty project in Lazarus, add the libusb unit to the uses clause, go to a TForm keyword and press Alt-Up . Lazarus will show the line I've mentioned in my first post, with Codetools error message
libusb.pp(1043,81) Error: expected =, but ; found
.
regards,