0

I am trying to make assimp work with Visual Studio 2013, but I always get this error:

Error 1 LNK1107: invalid or corrupt file: cannot read at 0x2F0

I followed all the steps here -> Assimp model loading library install/linking troubles

Built assimp from source using cmake, Visual Studio 12 2013 and put the includes and generated dll file in the solution folder. Added the paths in visual studio VC++ Directories (Include, library), C++ (Additional include dirs), Linker (Additional Library dirs, Additional Dependencies).

Am I missing something?

In addition, can someone suggest some other tools to read obj files and load vertex/index/texture buffers directly from the file?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Plutonium smuggler
  • 329
  • 5
  • 6
  • 17

1 Answers1

0

You need to link against the assimp.lib, not against the assimp.dll. The lib is used to say your aplication that it has to load the dll when starting your application.

KimKulling
  • 2,654
  • 1
  • 15
  • 26