- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want a simple priority queue - write one!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi dsl,
of course I could do that and you probably express the opinion of many here. But I personally think it doesn't make sense to reinvent the wheel every time and I'm very sure that mine won't be the best one. Besides that, my question is more general about the use of c++ libraries with nios II. Regards, Tobi
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page