Forum Discussion
KennyT_altera
Super Contributor
7 years agoMy guess is something to do with the setup. Just to have a fast confirmation
1) Are you following the HLS starting guide guide ? did you run the init_hls.bat first? User need to run this *.bat before any compilation as it will setup the environment.
2) Did you installed the VS 2010? when you manually go to the path c:/program files (x86)/microsoft visual studio 10.0/vc/bin/link.exe , did you see the link.exe file is present?
3) This error is saying user is adding a 32 bit link file for usage which is incorrect, HLS have to use the 64 bit link file. \VC\bin\amd64\link.exe
sThei
New Contributor
7 years agoHi,
and thank you for your answer.
1) I followed the HLS starting guide and ran the init_hls.bat.
2) I'm using Quartus Prime Pro 18.1 with patch 0.04. That is why I installed VS 2015. File C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe is present.
3) File C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe is also present. I changed my PATH variable to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\ and rebooted (!).
Problem is solved, but was followed by the linker not possible to find 'msvcprt.lib'. I had to set the include and lib path:
Set INCLUDE="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include;C:\intelFPGA_pro\18.1\hls\include;"
Set LIB="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib;"Now the problem is:
In file included from counter.cpp:1:
C:/intelFPGA_pro/18.1/hls/include\HLS/hls.h:16:10: fatal error: 'type_traits' file not found
#include <type_traits>
^~~~~~~~~~~~~
1 error generated.
HLS x86-64 compile FAILED.
Run test-x86-64.exe to execute the test.