I have this line in a header file:
typedef struct mystruct *mystruct;
And the corresponding struct definition in a .cpp file. Pretty standard practices.
I am getting this compilation error:
fatal error: typedef redefinition with different types ('struct mystruct *' vs mystruct')
This is using the Hexagon Tools Compiler (7.2.12) from Hexagon 3.0 SDK. It is officially QuIC LLVM Hexagon Clang version 7.2.12. Building for Snapdragon Flight. This should work as far as I know. It works with Ubuntu clang version 3.5.0-4ubuntu2~trusty2 (based on LLVM 3.5.0) for x86_64-pc-linux-gnu.
Related:
http://stackoverflow.com/questions/42288536/hexagon-compiler-having-trou...
I have tried this outside of PX4, and apparently the compiler works fine. It must be PX4 compilation that does not create libraries then link or something.