Keywords: compile, C, C++, GCC, G++, Power, PC, 440
When I use the C++ compiler (G++) with the Standalone OS or Xilkernel, I receive undefined reference errors similar to the following:
"tmp/ccI8W9s5.o: In function `main':
/project/TestApp_Peripheral/src/TestApp_Peripheral.c:47: undefined reference to `XCache_EnableICache(unsigned int)'
/project/TestApp_Peripheral/src/TestApp_Peripheral.c:48: undefined reference to `XCache_EnableDCache(unsigned int)'
/project/TestApp_Peripheral/src/TestApp_Peripheral.c:58: undefined reference to `XCache_DisableDCache()'
/project/TestApp_Peripheral/src/TestApp_Peripheral.c:59: undefined reference to `XCache_DisableICache()'
collect2: ld returned 1 exit status
make: *** [TestApp_Peripheral/executable.elf] Error 1"