The real kicker is that when I replace: mtlFile.open(mtldirectory.c_str()); with:
Woah, that sure sound strange.
Hm, did you try to make the "most simple case where it still fails"? Try to remove everything step by step until it suddenly works (or your program is empty. If it still fails, sue your compiler vendor *g*). IF it's really like your kicker here, your implementation of stdlib is broken. But maybe it's just something stupid like you forgot to close the file somewhere and there's locking issues and when you tried to test it you did something other different or so..
Ciao, Imi.
PS: And post if you got news. You got my interest! ;-)
Hm, did you try to make the "most simple case where it still fails"?
Not to the extent that I need to, I'm just about to pick everything apart and I'll reply if i figure it out. At this point since the code looks correct, I think its something interfering. Also I hope it's not a broken lib since I'm on a clean install of Ubuntu xD
Also I just tried forcibly setting mtldirectory as mtldirectory = "objects/tower/tower.mtl"; and it gives me the output: