I've been trying to open a .obj made in blender in an OpenGL project coded in c using visual studio 2012. I have read a lot of forums and questions asked here on stackoverflow but I still have errors when I try to compile the code.
I've already download GLM, copied the glm folder in my project folder, included the header in the code, added the aditional directories in my project properties, but i still have this error:
probando3d.obj : error LNK2019: símbolo externo _glmDraw sin resolver al que se hace referencia en la función "void __cdecl nave(void)"
probando3d.obj : error LNK2019: símbolo externo _glmReadOBJ sin resolver al que se hace referencia en la función "void __cdecl nave(void)"
It looks like it doesn't recognize the functions of the glm. I don't know if I should add something else in the linker properties.
This is how I load my obj
void nave(){
GLMmodel* model = glmReadOBJ("C:/Users/bagz_/Documents/Visual Studio 2012/Projects/probando3d/probando3d");
glPushMatrix();
glmDraw(model, GLM_MATERIAL|GLM_SMOOTH);
glPopMatrix();
}
This are the headers included
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include <math.h>
#include <GL/glut.h>
#include <glm.h>