You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compile demo in Microsoft Visual Studio Professional 2017 #45
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).
Can any body help me please to modify sources for compile them with Microsoft Visual Studio Professional 2017?
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.
Activity
flippmoke commentedon Feb 22, 2018
@ranet24 that looks like an error with
mapbox::variantor something else. What versions of all dependencies are you using?ranet24 commentedon Feb 22, 2018
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.
flippmoke commentedon Feb 22, 2018
@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.xseries is approaching end of life and support, we are currently working towards a2.xversion. Depending on what your needs are2.xmight be ready or you might need to wait for more support. We might be changing the API some until release though in2.x, so1.xshould be considered stable.ranet24 commentedon Feb 22, 2018
Succeeded! Thanks! You helped me a lot!
yuziqii commentedon Apr 2, 2022
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!