boost, reference to ‘int64_t’ is ambiguous #3483

issue eriksank opened this issue on January 3, 2014
  1. eriksank commented at 3:24 AM on January 3, 2014: none

    Hi,

    I am on trying to compile on debian wheezy amd64 using linux-libc-dev 3.2.51-1, libboost1.53-all-dev and gcc version 4.7.2 (Debian 4.7.2-5). The default version of boost on wheezy (1.49) doesn't implement the "sleep" function and never gets through the ./configure stage.

    In 1.53, the data type int64_t does not seem to resolve correctly. There seem to be two different, incompatible attempts at defining symbol int64_t in:

    • /usr/lib/gcc/x86_64-linux-gnu/4.7/include/stdint.h
    • /usr/include/boost/cstdint.hpp

    The confusion eventually leads to the following error message:

    • rpcserver.cpp:629:77: error: ‘int64_t’ has not been declared

    Any idea? Thanks.

  2. laanwj commented at 7:50 AM on January 3, 2014: member

    The definition from stdint.h is the correct one. Stdint is a part of the standard library, boost shouldn't have influence on it.

  3. int03h commented at 2:40 AM on February 1, 2014: none

    I have the same problem on Gentoo (Little Blue) uclibc hardened - totally different build environment same error. 0.9-rc1 fails as does a github clone or download master. It complains about the type of integer type. I tried googling it and I end up in a world of pain with discussions about declaring it explicitly or using long long ..

  4. Spacefish referenced this in commit 1e861060c0 on Sep 22, 2014
  5. laanwj closed this on Jan 6, 2015

  6. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 06:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me