Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

cannot find -ldl

Hi,

I use

nios2gcc-20080203.tar.bz2

and nios2-linux-20100621.tar

to build uclinux,and they work well.

But when I build my c and c++ files,I get a error:

/usr/local/src/opt/nios2/bin/../lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/bin/ld.real: cannot find -ldl

how can i solve that?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    IIRC you can't link to "dl" (dynamic loader/linker(?)) on uclinux/uclibc. You'll have to take that out of your build. If your program relies on it (for some sort of plugins maybe?) it's not going to work.