#9 Pb when sdcc is call from drive d:

closed-later
nobody
None
5
2000-06-14
2000-05-22
Anonymous
No

With V2.2.0a when sdcc is called from drive d: the message below is generated :

preproc file not found
: No such file or directory

Changing the following lines in SDCCMain.c solve the problem.
char *tmpname(void)
{
const char *tmpdir = NULL;
if (getenv("TMP"))
tmpdir = getenv("TMP");
else if (getenv("TEMP"))
tmpdir = getenv("TEMP");
else if (getenv("TMPDIR"))
tmpdir = getenv("TMPDIR");
return tempnam(tmpdir, "sdcc");
}

In function preProcess

if (!preProcOnly)
//preOutName = strdup(tmpnam(NULL));
preOutName = strdup(tmpname()); //JBWIN32

Discussion

  • Sandeep Dutta
    Sandeep Dutta
    2000-06-14

    • status: open --> closed-later
     
  • Sandeep Dutta
    Sandeep Dutta
    2000-06-14

    This is cygwin problem will be handled with Michaels build
    not using cygwin