Forum Discussion
Altera_Forum
Honored Contributor
8 years agoBump.
I too am having the same issue. Similarly, changing the libstdc++ libraries did not work for me either. Ubuntu 16.04 LTS. EDIT: I found a solution. I installed gcc 4.4.7 (as recommended in the docs) by adding the following to /etc/apt/sources.listdeb http://dk.archive.ubuntu.com/ubuntu/ trusty main universe
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main universe then run the following: sudo apt-get update
sudo apt-get install gcc-4.4 g++-4.4 To switch between your current gcc and gcc-4.4, do the following (my current is gcc-5): sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.4
sudo update-alternatives --config gc Then I added the following arguments to the compilation: -I/usr/include/c++/4.4.7 -I/usr/include/c++/4.4.7/x86_64-linux-gnu -L/home/jb/intelFPGA_lite/17.1/hls/linux64/lib/dspba/linux64 I'm no expert but I'd think there's a way to include these paths by default when using i++. Regardless, this is what allowed me to compile the counter example.