Menu

#72 doesn't build on HP-UX (maybe int64_t)

open
nobody
None
5
2003-12-08
2003-12-08
No

0.3.4b doesn't finish build on HP-UX 10.20 with gcc: it
gives a syntax error before ; on line 17 of
tests/Clock.hh

I presume it is related to the int64_t type.
If I substitute it with a long long it I get a warning

Clock.hh:17: warning: ANSI C++ does not support `long
long'
Clock.cpp:21: warning: ANSI C++ forbids long long
integer constants.

looking in sys/types.h I see the int64_t type used
though.

I tried including sys/types.h.

So I ended using long int and so it compiles happily.
If it works it has to be proved.

Discussion

  • Jack Strohm

    Jack Strohm - 2004-08-20

    Logged In: YES
    user_id=9049

    I have this same problem under Gentoo version 2.6.5-gentoo-
    r1. I'm using gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-
    r6, ssp-3.3.2-2, pie-8.7.6).

    I changed

    typedef long long int usec_t;

    to

    typedef int64_t usec_t;

    and it compiles now.

     
  • Jack Strohm

    Jack Strohm - 2004-08-20

    Logged In: YES
    user_id=9049

    Forgot to add I'm using log4cpp version 0.2.8

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.