gcc -pg and ld error, "cannot find -lgcc_p"
freebsd at t41t.com
freebsd at t41t.com
Tue Oct 27 06:43:54 UTC 2009
On 7.2-RELEASE-p4, I have a very complicated C program:
int main(int argc, char** argv)
{
return 5;
}
I can compile this program (cc example.c -o example) and it compiles
and runs fine. However, if I try to enable profiling of this program by
compiling it as "cc example.c -pg -o example" I get an error:
/usr/bin/ld: cannot find -lgcc_p
Is there some port/package that I'm missing? A configuration somewhere? Why
is ld stumbling on the profiling flag?
Thanks.
More information about the freebsd-questions
mailing list