Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using .obj Files in VC++ Projects

I have a Win32 console project in VS2010 and I added an .obj file to the solution that I exported from Blender (it's a simple cube), but I get a LNK1107 error saying it can't read at 0x107 when I run or build the project. I tried going to Project > Properties > C/C++ > Additional Directories and named the .obj file there and put my file under the same directory as my source code and that didn't fix it.

like image 426
Aaron Avatar asked Mar 07 '26 01:03

Aaron


1 Answers

I just had the same problem trying to load a .obj file. The way to do it is to right click on the file in Visual Studio and go to properties. In the General section, select exclude from build which prevents VS from attempting to link it.

like image 69
John Avatar answered Mar 10 '26 09:03

John