Unable to compile C++ API on ubuntu 22.04 jammy : Unable to parse translation unit (status = 4)

Hello,

I am new to this forum and it seems this question isn't answered yet. I really hope you can help me guys.
I am trying to compile Metawear C++ Api examples on Ubuntu 22.04, with llvm-14, clang and clang++ installed

when I'm trying to build the examples (with "make test" command in MetaWear-SDK-Cpp directory ) I am getting this output (see attached file) and I'm stuck. Right before, I had to change my LIBRARY_PATH env variable with
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib/llvm-14
because g++ couldn't find clang.

For your information :

Ubuntu clang version 14.0.0-1ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

g++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Sign In or Register to comment.