Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

cannot find -ldl

Altera_Forum
Honored Contributor II
973 Views

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?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
252 Views

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.

0 Kudos
Reply