Forum Discussion
Dear @BoonBengT_Altera
I was finally able to continoue on the project and followed your advices. Here is the result:
I have transferred my project into a VisualStudio 2022 project solution. Like this I was able to debug the project more in detail. As already stated by you, there were some conflicts with the braces. But in the end the project compiled successfully. There were two things I've noticed during compilation with Visual Studio:
- Some includes had to be added manually to the project. I don't know how this is done during HLS compilation and how the HLS compiler knows about the includes. However, they are all located in the 'src' folder and should be accessible for the compiler.
- I had to set a flag for the compiler for a big project. In my first attempt to compile the project, the compiler complained about the size of the obj file and did not finish the job successfully. Only after the flag was set the compiler run through and in the end generated an obj file of about 250MB size.
During my first attempt with the HLS compiler, it still claimed an issue with the braces. The compiler this time printed the error message and stopped working.
I was not sure if the HLS compiler got confused by the #ifndef statements in the myproject.cpp file, because the claimed braces were placed within these #ifndef statements. Therefore, I did remove them completely because they are not necessarily needed for a first test run. After that the HLS compiler started to work. But I ended up in the same situation as before: The HLS compiler runs forever without returning any message.
I assume that there is no project issue at the moment since the project was compilable in VisualStudio. For your reference, I zipped the complete VisualStudio solution again and attached it to this post. Maybe you see more than I do and there still is something wrong in my project. But so far I don't see anything that could be wrong in the project.