I'm trying to use fstream for some necessary file I/O in my mod, but I'm getting the following error:
Does anyone have any idea why this is occurring?
EDIT: I've been looking for a solution online and saw a suggestion to comment out all defines of the keyword new. I found this in CvGameCoreDLLDefNew.h:
I commented this out and it's compiling fine, but I'm guessing it's not a good idea to leave this commented out. Why would this line cause an error with fstream, and how can I get around this?
BTW, Merry Christmas to everyone!
fstream (465) error C2061: syntax error : identifier '_DebugHeapTag'
Does anyone have any idea why this is occurring?
EDIT: I've been looking for a solution online and saw a suggestion to comment out all defines of the keyword new. I found this in CvGameCoreDLLDefNew.h:
Code:
#define new new(__FILE__, __LINE__)
I commented this out and it's compiling fine, but I'm guessing it's not a good idea to leave this commented out. Why would this line cause an error with fstream, and how can I get around this?
BTW, Merry Christmas to everyone!
