Reputation: 18712
I'm trying to compile a Delphi project in Free Pascal Lazarus and get compiler errors, because several WinAPI functions (CreateNamedPipe
, GetLastError
, OutputDebugString
) can't be found.
The uses
clause of the file in question looks like this:
uses
SysUtils,
LCLIntf, LCLType, LMessages;
Which units should I add to the uses
clause in order to fix the aforementioned compiler errors?
Upvotes: 2
Views: 5701
Reputation: 161
You need the Unit Windows for the WinAPI.
uses SysUtils, LCLIntf, LCLType, LMessages, Windows;
Upvotes: 4