Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-12

generally ask

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darek Mazur

Hi
sorry for my voice, but I want to understand

I'd like compile everything with command line, RTL+FCL+LAZARUS+my application
with LAZARUS is all OK, but I have problem with RTL and FCL I've send some post but every time I receive - do MAKE

in my computer (WIN ME) hard to properly define for MAKE (not all makefile.fpc is rebuilt with new FPCMAKE)

I have a few things, which help me at work:
this depends only from directives and name of files

my ask is: do You plan correct, to achieve possibility recompile RTL at once with other application by command line

Darek

Reply by email

Jonas Maebe
to Darek Mazur
Darek Mazur wrote
my ask is: do You plan correct, to achieve possibility recompile RTL at once with other application by command line

It is certainly possible to compile the RTL without using make, since all make does is generate the correct command line options for the compiler. I suppose you mean that the compiler should be able to automatically compile the RTL units if they are not yet compiled? This is possible for all units except for the system unit, because that one requires a special command line option (-Us).

The others can be automatically compiled if you add the correct search paths to the compiler. Something like

-Fu/pp/source/rtl/win32;/pp/source/rtl/objpas;/pp/source/rtl/inc -Fi/pp/source/rtl/win32;/pp/source/rtl/win32/wininc;/pp/source/rtl/inc; /pp/source/rtl/objpas;/pp/source/rtl/inc/graph;/pp/source/rtl/i386

I may have forgotten some directories, but those should be the most important. You may be able to do something similar for the FCL, except if certain units require special command line options (for example, if a unit is written in objfpc mode, but it does not contain {$mode objfpc}, then -S2 has to be specified on the command line).

Keep in mind that this can cause very hard to find problems though: for example, if your ppc386.cfg configuration file contains -S2, then the RTL units will be compiled in objfpc mode, while they were written for normal FPC mode and as such they may not work with -S2 (because e.g. string = ansistring instead of shortstring int hat mode)

Jonas

Reply by email

Darek Mazur
to Jonas Maebe
Show quoted text 6 lines
The others can be automatically compiled if you add the correct search paths to the compiler. Something like -Fu/pp/source/rtl/win32;/pp/source/rtl/objpas;/pp/source/rtl/inc -Fi/pp/source/rtl/win32;/pp/source/rtl/win32/wininc;/pp/source/rtl/inc; /pp/source/rtl/objpas;/pp/source/rtl/inc/graph;/pp/source/rtl/i386

I know and do this

Show quoted text 6 lines
I may have forgotten some directories, but those should be the most important. You may be able to do something similar for the FCL, except if certain units require special command line options (for example, if a unit is written in objfpc mode, but it does not contain {$mode objfpc}, then -S2 has to be specified on the command line).

but with BASE.INC (I think not only but e few) must be plain mode (-S2 disabled)
and some others -S2 enabled

Show quoted text 6 lines
Keep in mind that this can cause very hard to find problems though: for example, if your ppc386.cfg configuration file contains -S2, then the RTL units will be compiled in objfpc mode, while they were written for normal FPC mode and as such they may not work with -S2 (because e.g. string = ansistring instead of shortstring int hat mode)

This is very easy do switch string=ansi or string=short, only H+ H- switch on top of unit, but when this is absent I must several times change my FPC.CFG

Show quoted text 5 lines
Jonas

I know this is possible, but not very easy, and I thint when move developers will work with FPC then will be more ask

Darek

_______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email