Friday, 26 December 2025
  1 Replies
  9 Visits
  Subscribe
Hi I keep getting this error when I compile the code below:

procedure TForm1.Button1Click(Sender: TObject);

var
ABinanceAPI : TsgcWSAPI_Binance;
AWebSocket : TsgcWebSocketClient;
AnApiKey : string;
AnApiSecret : string;
AServerTime : string;

begin
ApiKeys.GetApiKeys(AnApiKey,AnApiSecret);
try
AWebSocket := TsgcWebSocketClient.Create(nil);
ABinanceAPI := TsgcWSAPI_Binance.Create(nil);
ABinanceApI.Binance.ApiKey:=AnApiKey;
ABinanceAPI.Binance.ApiSecret:= AnApiSecret;
ABinanceAPI.Client:=AWebSocket;
AWebSocket.Active:=TRUE;
AServerTime := ABinanceAPI.REST_API.GetServerTime;
AppLog.LogEntry('ServerTime',AServerTime);
finally
ABinanceApI.Free;
AWebSocket.Free;
end;
end;

Here are some things I've check with the AI:
1) I'm using version 4.4 u r using 2.2
2) Lazarus does not come with Indy installed so I'm using your version of Indy since I have not installed any version of Indy.
3) OpenSSL is installed and are at: /usr/lib/x86_64-linux-gnu/libssl.so.3 and /usr/lib/x86_64-linux-gnu/libcrypto.so.3
4)Simlinks are correctly pointing to what indy is expecting: libssl.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so
and libcrypto.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libcrypto.so
5) On the custom compiler section I placed -dOPENSSL so it is forced to use.
6) All of the sgc Components are mapping to: /home/can/Lazarus-Projects/EseGece/Source/sgcWebSocket.pas (The Source directory in ESEGECE)

There are compiled object *.o and *.ppu files under Lazarus. nothing is pointing to them. Furthermore these is dcr file in the lazarus section. It looks like a delphi file instead of a lpr file. May be I have all this installed false.

I would appreciate for any suggestions.

Thanks