Forum Discussion

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

Nios II - mixed C and C++ project problem

Hi everybody,

I'm a newbie with Nios II IDE (Version: 9.0 Build: 132) and have following problem when building project with both C and C++ (.cpp) files.

- project with source files (all .cpp) is built and can be run on HW (Cyclone II DSP development board) without problems

- another project with all sources as .c files can be built and runs on HW

Problem: when I want to add .cpp source file to project with .c files, all files are compiled, but linker can't find functions from .cpp file and I get "undefined reference to ..." error.

So my question is, how do I setup IDE or where is the setting/flag in the project properties?

Dusan

1 Reply