I'm learning Windows API and tried to compile some GUI examples but I found there is always a console window together with it. I want to get rid of the console. On gcc I could use -mwindows to tell it to target the Windows GUI subsystem but I don't know the equivalent options on Free Pascal.