Recent

Author Topic: I can't recompile some low level modules  (Read 4161 times)

akubanek

  • Newbie
  • Posts: 1
I can't recompile some low level modules
« on: July 20, 2010, 10:10:23 am »
In my project I want to be able to  log any operations of creating, deleting, truncating and renaming files so I have modified these files in Lazarus FPC (v.0.9.22 Win32):
$(FPCSrcDir)\rtl\win32\classes.pp
$(FPCSrcDir)\rtl\win32\sysutils.pp
$(FPCSrcDir)\rtl\win32\sysfile.inc
I have that path ($(FPCSrcDir)\rtl\win32\) added to the "Other Unit Files" and the "Include Files" search paths in IDE Compiler Options. That path is also added in fpc.cfg file from project directory:
-Fi$(FPCSrcDir)\rtl\win32\
-Fu$(FPCSrcDir)\rtl\win32\
When I compiled my project on the IDE logging is working fine, but when I compiled this from the command line, in  destination application  that modification is not included, so the compiler (and linker) took the original compiled units (.ppu).
How to force command line compiler (linker) to include modified units?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
Re: I can't recompile some low level modules
« Reply #1 on: July 20, 2010, 11:33:53 am »
Read the buildfaq (search for fpc buildfaq on the web), and rebuild FPC on the cmdline using make.

Then, under no circumstances, include FPC paths in your lazarus unit searchpath (only in the debugger sourcepath)

 

TinyPortal © 2005-2018