Skip to content

compile error HPHP::Variant::Variant(ssize_t) cannot be overloaded #16

Closed

Description

@danielrmz

I ran make and get the following error.

[ 17%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/cpp/base/string_data.cpp.o
In file included from /home/daniel/workspace/hiphop-php/src/cpp/base/zend/zend_string.h:22,
from /home/daniel/workspace/hiphop-php/src/cpp/base/string_data.cpp:22:
/home/daniel/workspace/hiphop-php/src/cpp/base/type_variant.h:95: error: ‘HPHP::Variant::Variant(ssize_t)’ cannot be overloaded
/home/daniel/workspace/hiphop-php/src/cpp/base/type_variant.h:92: error: with ‘HPHP::Variant::Variant(int)’
make[2]: *** [src/CMakeFiles/hphp_runtime_static.dir/cpp/base/string_data.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/hphp_runtime_static.dir/all] Error 2

Activity

  1. Maeyanie commented on Feb 21, 2010

    @Maeyanie

    This happens on some 32-bit platforms, where ssize_t is a typedef of an int.
    It seems to work if "ssize_t" is replaced with "long" in all appropriate places.

  2. scottmac commented on Feb 21, 2010

    @scottmac
    Contributor

    We only support 64-bit for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions