Some trouble with GLM

hey im trying to use GLM(because the other tools i were using were for openGL ES, for iphone basically. thats why it wasnt working right)

so when using this header group, i just included it into my project folder, i get a bunch of undefined errors for anything glm related

i know this isnt a library but im wondering if anyone can help me out on how to set this up correctly(maybe some steps and a site with everything needed)

i got my GLM from http://www.3dcodingtutorial.com/ if that helps anyone

thanks in advance for anyone that helps me out :smiley:

It’s hard to know what you’re doing wrong if you don’t tell us what errors you got.

one of the undefined errors are:

undefined reference to glmReadOBJ(*char)

or something along those lines(gotta setup code blocks on my main again…)

once i get everything setup right ill send the full error report

EDIT: ok heres the build log(i took out the unimportant stuff)

||=== Carperon, Debug ===|
||warning: auto-importing has been activated without --enable-auto-import specified on the command line.|
obj\Debug\Main.o||In function Z6Createv':| undefined reference toglmReadOBJ(char*)’|
undefined reference to glmUnitize(_GLMmodel*)'| undefined reference toglmFacetNormals(_GLMmodel*)’|
undefined reference to glmVertexNormals(_GLMmodel*, float)'| undefined reference toglmDraw(_GLMmodel*, unsigned int)’|
||Info: resolving vtable for sf::Sprite by linking to __imp___ZTVN2sf6SpriteE |
||Info: resolving vtable for sf::String by linking to __imp___ZTVN2sf6StringE |
||Info: resolving sf::Font::ourDefaultCharset by linking to __imp___ZN2sf4Font17ourDefaultCharsetE |
||=== Build finished: 5 errors, 1 warnings ===|

hey sorry about double-post

i tried the ( i think) original glm and i got these errors:

http://http://glm.g-truc.net

||warning: missing whitespace after the macro name|
|22|error: expected constructor, destructor, or type conversion before ‘*’ token|
||In function ‘void Create()’:expressionless:
|64|warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x|
|65|warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x|
|66|warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x|
|116|error: ‘World’ was not declared in this scope|
|118|error: ‘glmReadOBJ’ was not declared in this scope|
|119|error: ‘glmUnitize’ was not declared in this scope|
|120|error: ‘glmFacetNormals’ was not declared in this scope|
|121|error: ‘glmVertexNormals’ was not declared in this scope|
|304|warning: comparison between signed and unsigned integer expressions|
|333|warning: comparison between signed and unsigned integer expressions|
|384|error: ‘World’ was not declared in this scope|
|384|error: ‘GLM_FLAT’ was not declared in this scope|
|384|error: ‘GLM_TEXTURE’ was not declared in this scope|
|384|error: ‘glmDraw’ was not declared in this scope|
|469|warning: comparison between signed and unsigned integer expressions|
||=== Build finished: 10 errors, 7 warnings ===|

|116|error: ‘World’ was not declared in this scope|
|118|error: ‘glmReadOBJ’ was not declared in this scope|
|119|error: ‘glmUnitize’ was not declared in this scope|
|120|error: ‘glmFacetNormals’ was not declared in this scope|
|121|error: ‘glmVertexNormals’ was not declared in this scope|
|304|warning: comparison between signed and unsigned integer expressions|
|333|warning: comparison between signed and unsigned integer expressions|
|384|error: ‘World’ was not declared in this scope|
|384|error: ‘GLM_FLAT’ was not declared in this scope|
|384|error: ‘GLM_TEXTURE’ was not declared in this scope|
|384|error: ‘glmDraw’ was not declared in this scope|

I’m just a user of GLM, but I’m pretty sure that glmVertexNormals, GLM_FLAT, and the like don’t actually exist. Especially since all GLM symbols are in the “glm” namespace, and the author does not put “glm” in front of function calls. I think you’re confusing GLM with something else.

There are 2 glm, one made by Nate Robins (for loading models), and one for making mathematics with openGL. The one from g-truc.net is not the one for loading models.

hmm…ok.

so what exactly am i supposed to do?

wait i think i see it…gimme a sec

EDIT again:gonna look at the manual on g-truc

ANOTHER EDIT:

ok i give up, not sure on how to start

an example would be nice xD

alright i think i got the right GLM this time.

ill edit once i get somewhere xD

again sorry about double-post

hey im not able to edit for some reason…

I compiled at school yesterday and it worked fine, but when i got home, it didnt want to work at all(undefined errors AGAIN)

heres what i got…

GLMmodel* World;
World = glmReadOBJ(“WorldMap3Dv1.obj”,0);
glmDraw(World,GLM_NONE,0);

and heres the site i got the code from: http://www.eden.net.nz/7/20031008glm.html
also im using CodeBlocks with MinGW and Windows Vista(home) and Windows 7(school) if that matters at all

if you know any reasons that my project might do that then please share some knowledge :frowning: