Altera_Forum
Honored Contributor
12 years agoHow to solve NIOS and C++ problem with alt_remap_uncached
I'm using NIOSII eds for an app in my SOC. I'd like to use C++, but I'm having problems even getting it started.
What am I missing here? extern "C" {# include <stdio.h># include "system.h"# include "adxl.h" } int main() { unsigned char *padxl = (unsigned char*)alt_remap_uncached((void*)(ADXL_BASE),sizeof(unsigned char)); printf("Hello from Nios II!!!!\r\n"); return 0; } gives me the following error: 'alt_remap_uncached' was not declared in this scope