문제

Here I have my headers:

// ASSIMP
#include <assimp\Importer.hpp>
#include <assimp\scene.h>
#include <assimp\postprocess.h>

It compiles and there's no unresolved externals so my library file should be correct.

But further down:

/* load file with assimp and print some stats */

const aiScene* scene = aiImportFile(file_name, aiProcess_Triangulate);
if (!scene) {
    fprintf(stderr, "ERROR: reading mesh %s\n", file_name);
    return false;
}

I get an error with aiImportFile that its identifier isn't found. Which is baffling as pretty much everything else from assimp works.

How do I fix this? At the moment compiling the source code of assimp doesn't work, I don't get any library files so I'm stuck with whats available under "full".

도움이 되었습니까?

해결책

After much work on finding a solution, I'm pretty sure the problem was compiling the library in debug mode. I believe it only works in Release mode.

Unfortunately this was a while back and don't have the code currently on my computer so I'm not 100% sure, but I am 90% sure.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top