I am cross compiling to Window64 bit from Linux64 bit if I select Win32 gui application option program open but as soon as I execute a query to database it shows attached error but removing win32 gui option run the program properly.
Development Env:
Lazarus : 2.1.0
Feepascal : 3.3.1
OS : Linux 64bit Ubuntu 16.04