[fpc-pascal]Compiler switches

Marco van de Voort marcov at stack.nl
Fri Sep 3 09:43:22 CEST 2004


> > I'd like to try using JEDI-SDL but the directions only tell how to set 
> > up the IDE... not how to use the command line compiler under Linux.
> > 
> > I'm stumped on a few of them.
> > 
> > I condensed the following from the JEDI-SDL Yahoo Group instructions and 
> > added what I think the corresponding command-line switch should be:
> > 
> > Compiler switches page
> > 
> > Delphi 2 extensions to ON
> > Delphi compatibility to ON
> > 
> > -Mobjfpc
> > -Mdelphi
> 
> -Mobjfpc and -Mdelphi are different things and mutually exclusive (when 
> given as compiler switch).
 
> I guess that -Mdelphi is appropriate.

-MDelphi nowadays auto turns on -Rintel too

> controls the output format - In this case generates win32 pe coff files, 
> which is probably not suitable for a Linux environment.
> 
> > Add FPC to the conditional defines box at the bottom of the page.
> 
> -dFPC

FPC already defines FPC as internal symbol.





More information about the fpc-pascal mailing list