Menu

#1 libaws doesn't compile because of unknown type uint64_t

open
nobody
None
5
2011-05-30
2011-05-30
No

Hi,

When I try to build libaws I get:
/tmp/NT8OOpZt0c/libaws-0.9.2/include/libaws/sqsresponse.h:124:9: error: ‘uint64_t’ does not name a type

This is on Ubuntu 11.04, GCC 4.5.2

Discussion

  • Anonymous

    Anonymous - 2012-01-08

    Hey, I actually ran in to this problem as well. It's just a standards compliance issue. I'm attaching the patch that fixed things for me.

     
  • Anonymous

    Anonymous - 2012-01-08

    Hmm, couldn't add an attachment, so I'm going to post inline.

    --- libaws-0.9.2/include/libaws/sqsresponse.h 2009-04-09 02:22:54.000000000 -0700
    +++ libaws-0.9.2-fixed/include/libaws/sqsresponse.h 2012-01-04 07:03:18.003311793 -0800
    @@ -20,6 +20,7 @@
    #include <map>
    #include <string>
    #include <libaws/common.h>
    +#include <stdint.h>

    namespace aws {

    diff -u -r libaws-0.9.2/src/logging/logger.cc libaws-0.9.2-fixed/src/logging/logger.cc
    --- libaws-0.9.2/src/logging/logger.cc 2009-04-09 02:22:54.000000000 -0700
    +++ libaws-0.9.2-fixed/src/logging/logger.cc 2012-01-04 07:04:22.047484023 -0800
    @@ -4,6 +4,7 @@
    #include <cassert>
    #include "logging/loggermanager.hh"
    #include "logging/loggerconfig.hh"
    +#include <stdint.h>

    namespace logging {
    diff -u -r libaws-0.9.2/src/logging/logger.hh libaws-0.9.2-fixed/src/logging/logger.hh
    --- libaws-0.9.2/src/logging/logger.hh 2009-04-09 02:22:54.000000000 -0700
    +++ libaws-0.9.2-fixed/src/logging/logger.hh 2012-01-04 07:04:26.983971042 -0800
    @@ -2,6 +2,7 @@
    #define AWS_LOGGER_H

    #include <string>
    +#include <stdint.h>

    namespace logging {

     

    Last edit: Anonymous 2013-10-11

Log in to post a comment.