fstream included but “ifstream not found” and “identifier is undefined”

后端 未结 1 827
长情又很酷
长情又很酷 2021-01-29 04:45

I don\'t know what to make of this. I\'ve written a function that reads a .obj file, not unlike the dozens of other example functions out there for processing information from a

相关标签:
1条回答
  • 2021-01-29 05:13

    SOLVED! I knew it wasn't pointer related. Found this post, tried what it said, and it works flawlessly now. MSVCRTD.lib was missing in my dependencies. Why that's not mentioned anywhere as a prereq for using fstream is crazy. Can't believe the includes aren't enough.

    "I had to change the Runtime Library setting to use Multi-threaded DLL (/MD) and then add: msvcrtd.lib to my dependencies, that solved my problems I was encountering for building in debug mode."

    http://www.gamedev.net/topic/660218-strange-ifstream-crash/

    0 讨论(0)
提交回复
热议问题