Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-08-27 02:22:51


Hi Larry,

> but got:
>
> Comeau C/C++ 4.3.3 (Jan 30 2004 15:40:54) for LINUX_INTEL_ELF
> Copyright 1988-2004 Comeau Computing. All rights reserved.
> MODE:non-strict warnings C90
>
> "pwd.c", line 21: error: identifier "PATH_MAX" is undefined
> char buffer[PATH_MAX];
> ^
>
> after changing pwd.c as follows:
>
> *** pwd.c 2004/08/26 14:44:00 1.1
> --- pwd.c 2004/08/26 14:45:04
> ***************
> *** 10,16 ****
> #include <direct.h>
> #define PATH_MAX _MAX_PATH
> #else
> ! #include <unistd.h>
> #endif
>
>
> --- 10,19 ----
> #include <direct.h>
> #define PATH_MAX _MAX_PATH
> #else
> ! #include <unistd.h>
> ! #if defined(__COMO__)
> ! #include <linux/limits.h>
> ! #endif
> #endif
>
> I redid the `./build.sh como` and got no errors. Could this change in
> pwd.c be put into cvs?

Could you check if plain '<limits.h>' works on Como? Like this:

#if defined(NT) && ! defined(__GNUC__)
#include <direct.h>
#define PATH_MAX _MAX_PATH
#else
#include <limits.h>
#endif

Thanks,
Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk