[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uint64_t fails with C++
From: |
Peter Rosin |
Subject: |
Re: uint64_t fails with C++ |
Date: |
Wed, 07 Dec 2011 21:37:29 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
Werner LEMBERG skrev 2011-12-07 21:08:
>>> I still don't understand the details of the autoconf problem (and I
>>> still think that something is fishy), but defining this macro works
>>> just fine :-)
>>
>> Clearly, depending on an implementation-dependent macro is not
>> suitable for portable software.
>
> So please tell me how to solve this properly with autoconf.
My guess is that both "gcc test.c" and "g++ test.c" defines
__STDC_LIMIT_MACROS, while neither "g++ test.cpp" nor "gcc test.cpp"
does so (or whatever your preferred spelling of .cpp is).
I.e. both gcc and g++ behaves differently depending on the file
extension. The autoconf feature tests presumably uses a .c extension
and gets __STDC_LIMIT_MACROS defined, while your project uses
one of the C++ extensions (.cpp, .C, .cc, or something) and don't
get it defined.
If the above guesswork holds, then I wonder why your project uses
C++ file extensions and $CC (your said it was a C file). It should
be either C file extensions and $CC, or C++ file extensions and
$CXX. Or?
If the above guessing doesn't hold, then please ignore me...
Cheers,
Peter
- uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++, Peter O'Gorman, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++, Peter O'Gorman, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++, Bob Friesenhahn, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++,
Peter Rosin <=
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++, Mike Frysinger, 2011/12/07
- Re: uint64_t fails with C++, Nick Bowler, 2011/12/07
- Re: uint64_t fails with C++, Mike Frysinger, 2011/12/07
- Re: uint64_t fails with C++, Nick Bowler, 2011/12/07
- Re: uint64_t fails with C++, Paul Eggert, 2011/12/07
- Re: uint64_t fails with C++, Bob Friesenhahn, 2011/12/07
- Re: uint64_t fails with C++, Ben Pfaff, 2011/12/07
- Re: uint64_t fails with C++, Peter O'Gorman, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07