Unresolved External

Sep 25, 2010 at 9:21am
Hello!
I've got some strange problem: there is a function in cpp file

GLMmodel*
glmReadOBJ(char* filename)
{
...
}

and it's defined in header as this:

GLMmodel*
glmReadOBJ(char* filename);

I call it from other function in other cpp file in the same project like this:

GLMmodel* model = glmReadOBJ("file.ext");

but get unresolved external.

Can't figure out what is wrong.
Any king of help is appreciated :)
Sep 25, 2010 at 9:33am
Got this both in code::blocks+MinGW and MSVC Express Edition 2008.
Sep 25, 2010 at 9:45am
Got the problem solved: the function implementation was in .c file, not in .cpp. Change of extension solved that all.

Thanks to anyone who've read this :)
Topic archived. No new replies allowed.