Question

I'm trying to get the sample "SimpleOpenGl" from Assimp to work, but I get some linker errors i can't solve. (And yes I am very new)

I get 12 LNK2001 errors (below is two of them) 1>Sample_SimpleOpenGL.obj : error LNK2001: unresolved external symbol _aiTransformVecByMatrix4 1>Sample_SimpleOpenGL.obj : error LNK2001: unresolved external symbol _aiImportFile

When googling "aiTransformVecByMatrix4" it says that it requires cimport, but it is already included, so I am not sure why I am getting this error.

The sample project can be found here: http://assimp.svn.sourceforge.net/viewvc/assimp/trunk/samples/SimpleOpenGL/

Any help is appreciated, thanks.

As you can see the cimport seems to be correct included

Was it helpful?

Solution

If you have downloaded assimp, you must have its libraries in any place on your disk. Open your sample properties dialog, select Linker and check the path to external references.

This must give you a clue about where the sample is looking for libraries.

If you are not sure, please post your values so I can help you

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top