This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Regarding Dynamic Linker
On Tue, Oct 16, 2001 at 04:47:45PM -0600, Navin Kumar Vedagiri wrote:
> test-reg: test.o
> gcc test.o -o test-reg
>
>
> The file test.c has just got a function call that is located in rtld.c
> When i do a make it gives me follwing error
>
> test.o(.test+0x11): undefined reference to 'dlopen'
> test.o(.test+0x11): undefined reference to 'dlerror'
> test.o(.test+0x11): undefined reference to 'dlsym'
> test.o(.test+0x11): undefined reference to 'dlerror'
> test.o(.test+0x11): undefined reference to 'dlclose'
> collect2: ld returned 1 exit status.
>
> Can anyone help in solving this, I would appericate their effort
gcc test.o -o test-reg -ldl
--
Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com
"In a few thousand years people will be scratching their heads
wondering how on earth the first computer was invented and
bootstrapped without a prior computer to do it with."
-- Chris Malcolm, on comp.arch