Results 1 to 3 of 3

Thread: Compile by command line using IDE configuration

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    To know all Free Pascal command line options run "fpc -help" from console.

    There are a lot of them. The one that tells where units are is "-Fu<dir>". For example, for my Ubuntu/Linux the Lazarus Component Library (LCL) is at "-Fu/usr/lib/lazarus/0.9.30/lcl/*". Note the "*" at the end that means it should look at the subdirectories.

    Also remember to tell the compiler it needs to use Object Pascal instead of Pascal by using "-Mobjfpc".
    Last edited by Ñuño Martínez; 27-03-2012 at 10:29 AM.
    No signature provided yet.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •