0

I'm using the assimp library within my C project. I installed the library with sudo apt install libassimp5 and included the following headers:

#include <assimp/cimport.h>
#include <assimp/postprocess.h> 
#include <assimp/scene.h>

Everything seems fine at first, but type names like aiMesh and aiScene are unknown. I'm compiling with the flag -lassimp as well. Any idea on why these type names are unknown? Here's what my error looks like:

unknown type name ‘aiMesh’
static struct Mesh processMesh(aiMesh *mesh, const aiScene *scene) {

Any ideas on how to fix this?

1 Answer 1

0

You need to inlcude the mesh.h nHeader as well:

#include <assimp/mesh.h>

Hope that helps!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.