[fpc-pascal] Problems when using gprof

bartek bbartek at gmx.net
Sun Apr 29 18:23:56 CEST 2007


I tried using gprof to profile my program. But "fpc -pg infor.pp" results in:

bartek at bartek-laptop:~/Dev/Infor$ fpc -pg infor
Free Pascal Compiler version 2.1.3 [2007/03/29] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling infor.pp
infor.pp(94,2) Note: Local variable "winX" not used
infor.pp(94,8) Note: Local variable "winY" not used
Linking infor
/usr/local/lib/fpc/2.1.3/units/i386-linux/rtl/si_c21g.o: In function 
si_c21g.pp:(.text+0x2d): undefined reference to `__libc_atexit'
infor.pp(144,1) Error: Error while linking
infor.pp(144,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 at bartek-laptop:~/Dev/Infor$

FreePascal fixes_2_2 on Kubuntu 6.10 x86

Thanks in advance

More information about the fpc-pascal mailing list