[fpc-devel] Profiling in Windows

Ċ½ilvinas Ledas zilvinas.ledas at dict.lt
Sun Dec 6 18:58:42 CET 2009


Hello all,

I have downloaded and installed cygwin (1,7) under windows 7.
I have put 
C:\cygwin\lib\;C:\cygwin\bin\;C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\ 
with -Fl option and I am trying to compile my program with -pg (using 
Lazarus IDE), but I'm getting this error:

sint_LPC.lpr(311,1) Error: Failed reading coff file, invalid section 
index while reading C:\cygwin\lib\libcygwin.a(_cygwin_crt0_common.o)

What am I doing wrong?


Regards,
Ċ½ilvinas Ledas


JoshyFun wrote:
> Hello Vincent,
>
> Friday, November 20, 2009, 8:30:49 AM, you wrote:
>
>   
>>> pp.pas(224,1) Error: Import library not found for c
>>> pp.pas(224,1) Error: Import library not found for gmon
>>> pp.pas(224,1) Error: Import library not found for cygwin
>>> pp.pas(224,1) Error: Import library not found for user32
>>> pp.pas(224,1) Error: Import library not found for kernel32
>>> pp.pas(224,1) Error: Import library not found for gcc
>>>       
> VS> I have those files in c:\cygwin\lib. I don't know anymore what cygwin packages I
> VS> installed to get them.
> VS> Last time I tried (a couple of months ago), I could compile Lazarus with profiling
> VS> info, but the gprof output file remained empty, IIRC.
>
> I had used it one year ago for a project and I had to install mingw32
> and cygwin and add the libs paths to the "other library" of the
> project. This is my search path for that project, maybe it helps:
>
> C:\cygwin\bin\;C:\cygwin\lib\;C:\Mingw\lib\;C:\Mingw\lib\gcc\mingw32\3.4.5\
>
> Obviously one of them is not needed ;)
>
>   




More information about the fpc-devel mailing list