Ok so you are using the Lazarus IDE. Have you tried just using the FreePascal compiler via the command line to make sure that at least that works and compiles your application?