------- Comment #5 from burnus at gcc dot gnu dot org 2010-04-22 08:03 ------- (In reply to comment #3) > or not, but "/tmp" does exist on many Windows systems.
I wanted to write: "does not". (In reply to comment #4) > I would use here the platform API "GetTempPath". This seems to be the best > solution here. In general TEMP and/or TMP are defined in environment, but they > need to be there defined. I think Kai wanted to write: "do _not_ need to". GetTempPath: http://msdn.microsoft.com/en-us/library/aa364992%28VS.85%29.aspx with the example: dwRetVal = GetTempPath(MAX_PATH, // length of the buffer lpTempPathBuffer); // buffer for path if (dwRetVal > MAX_PATH || (dwRetVal == 0)) { PrintError(TEXT("GetTempPath failed")); As GetTempPath also checks TMP and TEMP, one does not need to check for TMP/TEMP before. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43844