Altera_Forum
Honored Contributor
14 years agopriority queue on nios II using Standard Template Library or libstdc++
Hi,
would like to implement a simple priority queue on the nios II procesor using Nios II SBT. First hits on google suggest the use of Standard Template Library STL. So this would be my first choice. But embedded design is not that easy and I figured out that using libstdc++ is the better choice, as Altera provides a Nios version (please correct me). Now my question is, how I can use this lib? # include <libstdc++> or# include <libstdc++.a> gives me warning that file is not found. A search on my Quartus installation folder says there are plenty of libstdc++.a. So, I tried to include the path of one of those by editing the makefile:# List of include directories for -I compiler option (-I added when used).# Includes the BSP.
ALT_INCLUDE_DIRS := C:\alteranew\11.1\nios2eds\bin\gnu\H-i686-mingw32\nios2-elf\lib Still doesn't find it. Any suggestions?