Hi all,
More information... I was able to get this far (errors regarding "impure pointer"
during link) only after changing a setting in my setup using the eCos Configuration
Tool. The setting I changed was under "ISO C Library", "ISO C Library internationalization functions". I enabled "Newlib's ctype implementation". Prior
to that I was using the defaults, which did not have this option selected. Instead, it
had "Inline versions of <ctype.h> functions" selected. But using this default
selection, I had a different set of errors, this time during compilation. They were:
make INSTALL_DIR=/cygdrive/c/altera/ecos_library/eqam_install all
nios2-elf-gcc -c -o hello.o -I/cygdrive/c/altera/ecos_library/eqam_install/include -g -O3 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -DSYSTEM_BUS_WIDTH=32 -mhw-mul -mno-hw-mulx -mno-hw-div hello.cpp
cc1plus: warning: switch "-fvtable-gc" is no longer supported
In file included from /cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/locale_facets.h:132,
from /cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/basic_ios.h:44,
from /cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/ios:51,
from /cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/ostream:45,
from /cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/iostream:45,
from hello.cpp:2:
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:46: error: `_U' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:47: error: `_L' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:48: error: `_U' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:48: error: `_L' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:49: error: `_N' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:50: error: `_X' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:50: error: `_N' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:51: error: `_S' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:52: error: `_P' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:52: error: `_U' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:52: error: `_L' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:52: error: `_N' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:52: error: `_B' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:53: error: `_P' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:53: error: `_U' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:53: error: `_L' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:53: error: `_N' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:54: error: `_C' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:55: error: `_P' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:56: error: `_U' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:56: error: `_L' was not declared in this scope
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/nios2-elf/bits/ctype_base.h:56: error: `_N' was not declared in this scope
make: *** [hello.o] Error 1
If anyone has a suggestion, I would really appreciate it.
Thanks,
Rennie