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++

Linking a DLL using Nios2 IDE

Altera_Forum
Honored Contributor II
1,075 Views

Hi, 

I'm trying to link the FFTW library to an example based on the Hello_world template but in vain. Here's the error: 

***[hello_world_2.elf] Error 1 

obj/hello_world.o *In function 'main': undefined reference to 'fftw_malloc' 

 

How do I link a DLL to a piece of code in Nios IDE? 

Thanks for any help.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
217 Views

HI, 

Regarding the same problem, if I specify the path of the library in "Project properties" and use linker flags -lfftw3, i get the following error: 

***[hello_world_2.elf] Error 1 

(path) ... /nios2-elf/bin/ld cannot find -lfftw3 

 

Any help is most welcome. Thanks!
0 Kudos
Reply