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

many "undefined reference to xxx" errors while building Nios V software

BXia
Novice
2,717,638 Views

Hi,

I created a Nios V based software, where VGA.c, VGA.h and main.c are included, after building the project, it indicated few "undefined reference to xxx" errors, as shown in figure below.

BXia_0-1731465257971.png

 

However, they are all defined in VGA.c, VGA.h as shown in figure, I don't know why this error got.

BXia_1-1731465407362.png

 

BXia_2-1731465442153.png

 

Anyone can share any advice? Thanks in advance.

0 Kudos
1 Solution
JingyangTeh
Employee
2,717,056 Views

Hi


Could you try rengenerating the Cmakelist again.

https://community.intel.com/t5/Nios-V-II-Embedded-Design-Suite/Nios-V-Processor-Installation-and-Hello-World-Execution-Part-2/m-p/1552556#M52381

Try going through 5.1.2 and 5.1.3 to update the list of c and h files in your project.


If you have done that could you try closing and reopening your project in the IDE.


Regards

Jingyang, Teh


View solution in original post

0 Kudos
3 Replies
JingyangTeh
Employee
2,717,057 Views

Hi


Could you try rengenerating the Cmakelist again.

https://community.intel.com/t5/Nios-V-II-Embedded-Design-Suite/Nios-V-Processor-Installation-and-Hello-World-Execution-Part-2/m-p/1552556#M52381

Try going through 5.1.2 and 5.1.3 to update the list of c and h files in your project.


If you have done that could you try closing and reopening your project in the IDE.


Regards

Jingyang, Teh


0 Kudos
BXia
Novice
2,716,710 Views

Thanks @JingyangTeh , followed your advice, the error was fixed.

0 Kudos
JingyangTeh
Employee
2,714,735 Views

Hi


I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.



Regards

Jingyang, Teh


0 Kudos
Reply