[Rd] Compile error on src/main/platform.c (PR#11988)

pnorbert at ornl.gov pnorbert at ornl.gov
Thu Aug 7 11:29:49 CEST 2008

Full_Name: Norbert Podhorszki
Version: 2.7.0
Submission from: (NULL) (

Using PGI 6.2.5 compiler instead of gcc, there is no HAVE_GLOB defined for
compilation (on our machine). 
The function do_unlink(...) in src/main/platform.c (lines 1368-1410) will have
an unclosed if statement in this case. 
    #if defined(HAVE_GLOB)
    #else /* HAVE_GLOB */
                failures += R_unlink(names, recursive);

condition starts inside an if statement, which is closed in the #if part and not
in the #else part.

It is the same for v2.7.1, too.

More information about the R-devel mailing list