Reason
1、in matio.h, there is a anonymous enum in line 160, which cause this.
Action
1、I changed llvm version, bindgen version,does not work
2、I mannually changed the enum into named one, works。
the related code is :
/** @brief matio lookup type
*
* @ingroup MAT
* matio lookup type
*/
enum
{
MAT_BY_NAME = 1, /**< Lookup by name */
MAT_BY_INDEX = 2 /**< Lookup by index */
};
Conditions: 1、windows10, msvc 2022, llvm 17(16), HDF5、zlib 2、cargo add matio-rs, cargo build --release
Error: 1、Ident not valid
Reason 1、in matio.h, there is a anonymous enum in line 160, which cause this.
Action 1、I changed llvm version, bindgen version,does not work 2、I mannually changed the enum into named one, works。
the related code is :
new