Rob Lahaye wrote: >> #include <config.h> >> #include <cstdint.hpp> >> int main() { return 0; } >> >> If you can do that without triggering the error, then I'm baffled. >> >> If you can't, then it makes sense to try and isolate the actual >> #define that is causing the error. > > Surprise surprise. I have these lines in src/config.h: > > /* Define to unsigned long or unsigned long long if <stdint.h> and > <inttypes.h> don't define. */ > #define uintmax_t unsigned long long > > > which obviously causes the trouble. Apparently, this clashes with > what I have in /usr/include/machine/ansi.h: > > typedef unsigned long long __uint64_t; > > > Or another typedef elsewhere? Does this bring us any closer?
Sigh. I don't know, Rob. It's hard to understand you messages from a distance of 9000km. Asking me to guess what's going wrong is helping neither of us. If you were to extract the offending #define in your <config.h> that caused the program above to fail to compile with $ g++ -I<path to lyx>/boost -o trial trial.C then we would be in a position to do something about your problem. To be absolutely clear about this, I'd like you to post a minimal, failing program of the form #define uintmax_t unsigned long long #include <cstdint.hpp> int main() { return 0; } where the #define is taken from your config.h file. -- Angus