Skip to content

Compile demo in Microsoft Visual Studio Professional 2017 #45

Open

Description

@ranet24

Hi! I have some problems with compilation "demo" in Microsoft Visual Studio Professional 2017.

I can't to compile the function "static mapbox::geometry::value parseValue(protozero::data_view const& value_view)" in the module vector_tile.hpp with message "error C2679: binary '=': no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)" and so on (see image please).

vectortiletestcompile

Can any body help me please to modify sources for compile them with Microsoft Visual Studio Professional 2017?

With best regadrs, Andrey Chernyshov

Activity

  1. flippmoke commented on Feb 22, 2018

    @flippmoke
    Member

    @ranet24 that looks like an error with mapbox::variant or something else. What versions of all dependencies are you using?

  2. ranet24 commented on Feb 22, 2018

    @ranet24
    Author

    I'm using the latest versions of dependensies downloaded from links:
    https://github.com/mapbox/vector-tile
    https://github.com/mapbox/protozero
    https://github.com/mapbox/variant
    https://github.com/mapbox/geometry.hpp
    with small modification of #include <experimental/optional> to #include < optional >
    And if I comment these switch, the rest of the sources are compiled correctly.

  3. flippmoke commented on Feb 22, 2018

    @flippmoke
    Member

    @ranet24 could you try with these versions of the libraries? https://github.com/mapbox/vector-tile/blob/master/Makefile#L15-L17

    I should note also that 1.x series is approaching end of life and support, we are currently working towards a 2.x version. Depending on what your needs are 2.x might be ready or you might need to wait for more support. We might be changing the API some until release though in 2.x, so 1.x should be considered stable.

  4. ranet24 commented on Feb 22, 2018

    @ranet24
    Author

    Succeeded! Thanks! You helped me a lot!

  5. yuziqii commented on Apr 2, 2022

    @yuziqii

    Hey, I got the same problem in Microsoft Visual Studio Professional 2019.

    It can't compile successfully (see the picture below please). And I've tried the solution #45 (comment). It didn't work.

    I also tried on my virtual machine(Ubuntu 20.04), It works perfectly. So I wonder if it's a compiler related problem?

    Any help would appreciate! Thanks!

    image

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions