Hi,

I like to profile my code with Lazarus or FPC. I tried to use the {$PROFILE ON} tag in the code and also the -pg option to fpc. In both situations I got an linker-error. The linker says he can't find the option -lc. In the file link.res the following section is displayed:

Download
ftp://ftp.freepascal.org/pub/fpc/contrib/gprof_win32.zip
and follow instructions.

Note: it's still not very-well tested. FPC 2.0.2 for win32 has a bug that
prevents profiling from working.
You need a fpc snapshot (2.0.3 or 2.1.x) for profiling to work on win32.
I think that if you use the fpc distributed with lazarus there should be
no problems.

bye
Giulio

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to