-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Eclipse: Method 'size' could not be resolved #649
Comments
No, I have no heard about neither problems nor successes with the library and Eclipse. Maybe you need to set the language version to C++11? And as a remark: |
I've followed the instructions on integration and I've added the argument for C++11, but it still does it. It's not a major issue, just wondering if it was possible to fix. I can close the issue if you are not aware of any fixes. |
This may be an issue in Eclipse's frontend, as you mentioned the code compiles without problems. I have little experience there. |
Are you using Ubuntu 16.04? Or is that Mac? |
I'm using macOS Sierra. |
Okay I tried doing what you did with a new project on Ubuntu. It seems I get the same result as you - no errors. However, I have a second project that contains some cflags and libs for OpenCV, but I wouldn't think that would affect it. Also, the only major difference is that the project in the second image is version controlled under Git. Other than that, everything remains the same. Maybe it'll be better if I ask Eclipse support what's up. |
The |
This really sounds like an Eclipse issue. |
I'm running Eclipse Oxygen on Linux and I followed all the instructions for Integration into my C++ project. When I try to call any function like
j.size()
orj.parse()
on myjson j;
object, Eclipse keeps saying "Method 'function_name
' could not be resolved" and it shows an error. Creating ajson
object and accessing its contents works perfectly fine, it's justsize()
. However it doesn't seem building with g++ causes any errors to occur. Are there any known issues with Eclipse and json.hpp? I'm using json v2.1.1.The text was updated successfully, but these errors were encountered: