By default, the mode used by fpc is {$mode fpc}.
But libwebp.pas uses some syntax that needs the mode {$mode objfpc}.
If you dont define at compilation -Mobjfpc or use a other mode, there is a error message when trying to compile libwebp.pas.
To fix this, just add at begin of libwebp.pas, after unit libwebp; :
Hello.
By default, the mode used by fpc is {$mode fpc}. But libwebp.pas uses some syntax that needs the mode {$mode objfpc}.
If you dont define at compilation -Mobjfpc or use a other mode, there is a error message when trying to compile libwebp.pas. To fix this, just add at begin of libwebp.pas, after unit libwebp; :
{$mode objfpc}