Hello,
I am trying to create a hexagon project which need to open a local wav file.
I'm using the Hexagon SDK 4.3.0.0 installed from the Package Manager and the project has the empty executable format for a v66 DSP and uses the LLVM Toolchain 8.4.11, everything is installed on a Ubuntu 20.04 VM.
I have included fstream and iostream in the main file in order to open the .wav. So I also have added to the include path posix and qurt inc folders ( in rtos/qurt/computev66/include) because compiler was looking for them. But then I don't know how to link the corresponding libraries. Libc++.a and libc++abi.a are both looking for references to pthread functions without success. I tried to look in the multithreading example or others example using fstream to figure out how I can do it but it did not help. I also tried to add several flags in the link command (-lpthread, -pthread, -lposix, ..) but it does'nt work (cannot recognize namespec -lxx). Does anyone have an idea of how I am supposed to do?
To reproduce the issue, simply create a hexagon project with a .cpp file with #include<fstream>. The issue seems pretty basic but I am a kind of newbie for this.
Regards,
Louis