Author Topic: Problem compiling when using -pg (gprof) option  (Read 3840 times)

Offline Trigve

  • Multiple posting newcomer
  • *
  • Posts: 15
Problem compiling when using -pg (gprof) option
« on: April 14, 2007, 06:32:43 pm »
Hi,

I have problem when compiling codeblocks on my freebsd box with "-pg" option with gcc... When it comes to linking the final "codeblocks" executable, I've got the following erros

Code
/usr/local/lib/libicuuc.so.36: undefined reference to `wcstombs'
/usr/local/lib/libxml2.so.5: undefined reference to `isinf'
/usr/local/lib/libicuuc.so.36: undefined reference to `modf'
/usr/local/lib/libtiff.so.4: undefined reference to `lfind'
*** Error code 1

I have tried add "-lc_p" as linker param but with no succes... Anyone know where could be the problem?

Using:
revision 3854
Code
#uname -a 
FreeBSD pentium4.domain 6.2-STABLE FreeBSD 6.2-STABLE #19: Thu Mar 15 13:47:18 CET 2007     dodes@pentium4.domain:/usr/obj/usr/src/sys/CUSTOM  i386

# gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305

Thanks

Trigve