User forums > Help

Problem compiling when using -pg (gprof) option

(1/1)

Trigve:
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

--- End code ---

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
--- End code ---

Thanks

Trigve

Navigation

[0] Message Index

Go to full version