【发布时间】:2017-05-13 08:40:16
【问题描述】:
我在尝试创建一个采用 struct aiMatrix4x4* 或任何其他 aiStructs 的函数时收到上述错误,我不知道为什么,我可以正确地创建模型,我只是无法使用上述结构作为参数创建函数出于某种奇怪的原因,这是我质疑的代码,我什至可以隔离它,但它仍然给我错误...
#include <math.h>
#include <assimp/cimport.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <assimp/matrix4x4.h>
// A Bit Later in the Code
static inline void mat4x4_loadassimp(mat4x4 M, struct aiMatrix4x4* a);
我正在使用从源代码编译的最新 assimp... 使用 C。使用 clang 作为编译器。
【问题讨论】:
-
除了项目开发人员github.com/assimp/assimp/issues/1126 之外,我无法为您提供更多帮助。但我对
struct aiMatrix4x4 *a没有问题,我只得到unknow mat4x4。 -
看来
typedef仅适用于C++。 -
你应该发布你的真实代码,因为我无法用这个minimal reproducible example复制。
-
您包含与您的 mcve 不同的“linmath.h”。我们无法解决这个问题,因为您没有完全相同的代码。