Forum Discussion
Altera_Forum
Honored Contributor
7 years agoI have uninstalled Quartus 15,DevC++ and visual studio 2015 before I installed visual studio 2010 and Quartus 17.
There is only one version of Quartus 17 on the machine. I first installed visual studio 2010 Professional ,and than installed Quartus 17.1. Finally, I have installed MinGW. After the installation is complete, this is my command prompt:
Setting environment for using Microsoft Visual Studio 2010 x64 tools.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd C:\intelFPGA_pro\17.1\hls
C:\intelFPGA_pro\17.1\hls>init_hls.bat
Assuming current directory (C:\intelFPGA_pro\17.1\hls\) is root of i++
Will use C:\intelFPGA_pro\17.1\hls\..\quartus to find Quartus
for internal i++ use
INFO: Could not find files for the given pattern(s).
Will be using Modelsim at C:\intelFPGA_pro\17.1\modelsim_ase\win32aloem
Will be using Modelsim at C:\intelFPGA_pro\17.1\modelsim_ae\win32aloem
Adding C:\intelFPGA_pro\17.1\hls\bin to PATH
Adding C:\intelFPGA_pro\17.1\hls\host\windows64\bin to PATH
C:\intelFPGA_pro\17.1\hls>H:
H:\>cd H:\test\counter
H:\test\counter>i++ -march=Arria10 counter.cpp
c:/program files (x86)/microsoft visual studio 10.0/vc/bin/link.exe : fatal error LNK1107: invalid or corrupt file :cannot read at 0x2A0
HLS Link x86-64 FAILD.
H:\test\counter>i++ -march=x86-64 counter.cpp
c:/program files (x86)/microsoft visual studio 10.0/vc/bin/link.exe : fatal error LNK1107: invalid or corrupt file :cannot read at 0x2A0
HLS Link x86-64 FAILD.
H:\test\counter>i++ --debug counter.cpp
EmitRawText called on an MCStreamer that doesn't support it, something must not be fully mc'ized
aocl-clang: error: clang frontend command failed with exit code 3 (use -v to see invocation)
HLS x86-64 compile FAILED.
H:\test\counter>i++ -v counter.cpp
Target FPGA part name: 10AX115U1F45I1SG
Target FPGA family name: Arria 10
Target FPGA speed grade: -2
Analyzing counter.cpp
Linking x86 objects
c:/program files (x86)/microsoft visual studio 10.0/vc/bin/link.exe : fatal error LNK1107: invalid or corrupt file :cannot read at 0x2A0
HLS Link x86-64 FAILD.
H:\test\counter>