Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

regular expressions with Nios

Altera_Forum
Honored Contributor II
824 Views

Hi, 

 

I wanted to use regular expressions with C or C++ for the Nios. 

My code gets compiled but the linker gives an undefined reference to regcomp and regexec. 

 

Doe anyone have a clue to solve this issue? 

 

thanks in advance
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
105 Views

Did you include all the required headers ( e.g. regex.h, stdio.h, stdlib.h ) ?

Altera_Forum
Honored Contributor II
105 Views

 

--- Quote Start ---  

Did you include all the required headers ( e.g. regex.h, stdio.h, stdlib.h ) ? 

--- Quote End ---  

 

 

It is not built into the precompiled newlib. That is the reason. For some reason I was even not able to compile it into a customized newlib. 

I used http://www.pcre.org/ and built it as a nios library. 

 

regards
Reply