[LLVMdev] MAXPATHLEN' undeclared (first use this function)

Henrik Bach henrik_bach_llvm at hotmail.com
Sat Sep 18 09:46:26 PDT 2004


Hi,

I get below error:
---------------------------------
In file included from /usr/local/build/llvm/lib/System/platform/Path.cpp:23,
                 from /usr/local/src/llvm/lib/System/Path.cpp:27:
/usr/local/build/llvm/lib/System/platform/../Unix/Path.cpp: In member 
function
   `bool llvm::sys::Path::create_directory(bool)':
/usr/local/build/llvm/lib/System/platform/../Unix/Path.cpp:343: error: `
   MAXPATHLEN' undeclared (first use this function)
---------------------------------

MAXPATHLEN is on Interix defined in <limits.h>.

However, it doesn't seem to have any effect including it before any other 
header files in the system specific Path.cpp for Interix as seen above:
---------------------------------
#include <limits.h>

// Include the generic Unix implementation
#include "../Unix/Path.cpp"

...
---------------------------------

Any suggestions?

Henrik

_________________________________________________________________
Opret en gratis Hotmail-konto  http://www.hotmail.com med udsigt til 250 MB 
lagerkapacitet




More information about the llvm-dev mailing list