|
Re: [mpatrol] Regarding undefined reference
krshna_bharath a écrit :
> dear team,
> i compiled a simple C code using the follwing statement.
> "cc -I/usr/local/include test.c -L/usr/local/lib -lmpatrol -lelf"
> get the following error.
> /usr/local/lib/libmpatrol.so: undefined refernce to 'bfd_errmsg'
> The error also says some more undefined refernces to some more bfd
> functions.
> can you say me a way to get out of this error
> thanks in advance
> nithya
>
add -lbfd at the end of your cc command...
not all distro ship libbfd however, you might have to rebuild it or
compile it statically into the binary...
Jeremy
|