Skip to content

illegal indirection #548

Closed
Closed

Description

@jacobjz

image
so i get this error :/

Activity

  1. gregmarr commented on Apr 5, 2017

    @gregmarr
    Contributor

    What release/commit are you using?

  2. jacobjz commented on Apr 5, 2017

    @jacobjz
    Author

    version 2.1.1

  3. gregmarr commented on Apr 5, 2017

    @gregmarr
    Contributor

    That's very strange. This is line 1136 in that release:

           result["url"] = "https://github.com/nlohmann/json";
    

    What is line 1136 in your json.hpp?

  4. nlohmann commented on Apr 6, 2017

    @nlohmann
    Owner

    Could you remove all headers but json.hpp and have your main just consist of json j;?

  5. jacobjz commented on Apr 6, 2017

    @jacobjz
    Author

    I've downloader version 2.0.5 and it works. :)

  6. nlohmann commented on Apr 6, 2017

    @nlohmann
    Owner

    That's strange. Which version of MSVC is this?

  7. jacobjz commented on Apr 6, 2017

    @jacobjz
    Author
    1. Btw can i make an object of any class with this repository? I'm trying to send an object from Java to C++.
  8. nlohmann commented on Apr 6, 2017

    @nlohmann
    Owner

    As of version 2.1.0, you can convert any type from/to JSON, see https://github.com/nlohmann/json#arbitrary-types-conversions.

    MSVC 2015 is supported, and we use it with AppVeyor, see https://github.com/nlohmann/json#supported-compilers.

  9. jacobjz commented on Apr 6, 2017

    @jacobjz
    Author

    Ok, i'll post the piece of code where this error occurs tonight and chceck AppVeyor as well:)

  10. nlohmann commented on Apr 10, 2017

    @nlohmann
    Owner

    Any news here?

  11. tatjam commented on Apr 13, 2017

    @tatjam

    Hmm I'm having the same issue (latest version, got it directly from the file in the repo). Seems to be happening in this line static constexpr T value{};, line 1136.

  12. tatjam commented on Apr 13, 2017

    @tatjam

    Also seems to happen on version 2.1.0, but no issues on version 2.0.10

    Will try g++ with the 3 versions and see if there is any issue, reporting soon!

    2.0.10 : No issues on g++. No issues on Visual Studio
    2.1.0: No issues on g++. Illegal indirection on Visual Studio
    2.1.1 No issues on g++. Illegal indirection on Visual Studio

    I don't have Visual Studio 2017 so won't be able to test with it

  13. nlohmann commented on Apr 13, 2017

    @nlohmann
    Owner

    Could you please tell me the exact versions of your MSVC. The library is known to work with the following versions:

    • Visual Studio 14 2015, Microsoft (R) Build Engine version 14.0.25123.0 (and probably later)
    • Visual Studio 2017, Microsoft (R) Build Engine version 15.1.548.43366 (and probably later)

    These exact versions are used by AppVeyor where the test suite can be compiled and executed without errors.

  14. tatjam commented on Apr 14, 2017

    @tatjam

    EDIT: Nevermind that's is not the version my bad... How can i get the version?

  15. nlohmann commented on Apr 22, 2017

    @nlohmann
    Owner

    In Visual Studio, the Tab 'Help'-> 'About Microsoft Visual Studio' should give you the desired infos. (from http://stackoverflow.com/a/5089489/266378).

  16. nlohmann commented on Apr 22, 2017

    @nlohmann
    Owner

    Any news on this?

  17. tatjam commented on Apr 22, 2017

    @tatjam

    Version 14.0.24720.00 Update 1

    Indeed that's older than what you use, I suppose they had no full support for contextpr?

  18. nlohmann commented on Apr 22, 2017

    @nlohmann
    Owner

    Right. Sorry, but we can't do anything about that.

  19. cfogelklou commented on Apr 25, 2017

    @cfogelklou

    I'm getting this error in MSVC2017, same line - 1136, so definitely newer than MSVC2015. Not sure if it should be closed?

  20. nlohmann commented on Apr 25, 2017

    @nlohmann
    Owner

    Hi @cfogelklou, what is the exact version you are using?

    We are using Microsoft (R) Build Engine version 15.1.548.43366 with AppVeyor, see https://ci.appveyor.com/project/nlohmann/json/build/1932 for the latest build which succeeds on MSVC 2017 as well.

  21. xgdgsc commented on May 11, 2017

    @xgdgsc

    I also get this with VS2015 Version 14.0.24720.00 Update 1. I will update to see.

  22. nlohmann commented on May 11, 2017

    @nlohmann
    Owner

    I think this version is not supported. The code is known to run with Microsoft Visual C++ 2015 / Build Tools 14.0.25123.0 (and possibly later), see https://github.com/nlohmann/json#supported-compilers.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions