Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get an error - JSON pointer must be empty or begin with '/' #421

Closed
ORESoftware opened this issue Jan 7, 2017 · 2 comments
Closed

Get an error - JSON pointer must be empty or begin with '/' #421

ORESoftware opened this issue Jan 7, 2017 · 2 comments

Comments

@ORESoftware
Copy link

I am a C/C++ newb so bear with me

I get this error:

../json.hpp:11286:87: error: exception handling disabled, use -fexceptions to enable
                 throw std::domain_error("JSON pointer must be empty or begin with '/'");

I am trying to create Node.js Addon - I included this project like so:

#include "json.hpp"

Here is the binding.gyp file I used:

{
  "targets": [
    {
      "target_name": "hello",
      "sources": [ "hello.cpp" ],
      "include_dirs": [
        "<!(node -e \"require('nan')\")"
      ],
      "cflags": [
        "-std=c++11"
      ]
    }
  ]
}

I think that's where I need to add the std=c++11 call

Any idea what the error might be about? Sorry don't know how to debug this at all

@ORESoftware ORESoftware changed the title Get an error Get an error - JSON pointer must be empty or begin with '/' Jan 7, 2017
@TurpentineDistillery
Copy link

See nodejs/node-gyp#17

@ORESoftware
Copy link
Author

@TurpentineDistillery thanks that seemed to do the trick!

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

No branches or pull requests

3 participants