Hi,

Recently i tried to profile my program using gprof. Compiling with -pg resulted in the following:

Code:
bartek@bartek-laptop:~/Dev/Infor$ fpc -pg infor
Free Pascal Compiler version 2.1.3 [2007/05/04] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling infor.pp
Linking infor
/usr/local/lib/fpc/2.1.3/units/i386-linux/rtl/si_c21g.o: In function `SI_C21G__FPC_LIBC21_GPROF_GMON_START':
si_c21g.pp:(.text+0x2d): undefined reference to `__libc_atexit'
infor.pp(177,1) Error: Error while linking
infor.pp(177,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
bartek@bartek-laptop:~/Dev/Infor$
Linux Kubuntu 7.04
FPC 2.1.3 ( fixes_2_2 branch )

Thanks in advance