Just through trial and error I finally got it to work, but it's not satisfying since I don't really understand why I needed to change what I did. I had to change it from this
Code:
Thing * ClassName::getThing( const OtherThing & ot )
{
...
}
to this:
Code:
ClassName::Thing * ClassName::getThing( const OtherThing & ot )
{
...
}
I probably should've mentioned this before, but Thing is a struct that was defined under "private:" in the header file for the class, ClassName.h (the code above is in ClassName.cpp). Also, not sure if this has anything to do with anything, but the prototype for the function in the code above was also declared privately in the header file. Can anyone please explain to me why I would need to make the change I did?