-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
os_defines.h:44:19: error: missing binary operator before token "(" #970
Comments
Could you try to apply a patch similar to this one? |
@theodelrieu I honestly don't know how to apply a similar patch. That patch is changing directly the part where that macros were used. In my case it's failing at a standard include file. |
Oh sorry I thought this was in the library's code... This SO post looks a lot like your issue, maybe it can help? |
I tried most of the workarounds there: None worked for me. Before opening an issue I actually tried applying workarounds from that Stack Overflow's post, as it's the very first Google result. Alas, it didn't work for me. |
Hmm, seems that including EDIT: I guess it's 5.0. Could you write a program which only includes |
Nope, that's not the problem (I would have noticed it long ago, as I do code a lot in C++):
I tried with every GCC versions I have:
|
And only including |
No, I tried with another old project where I use it (a rather complex one) and everything builds OK. It seems the problem is specific to Intel PIN's headers. If I try to build the most simple of the Intel PIN tools (just enter into $DIR/source/tools/MyPinTool and type 'make'), it compiles OK, but as soon as I include "json.hpp" in MyPinTool.cpp, it breaks. It didn't before with previous versions of Intel PIN. I wonder why... |
And including I've looked at this issue, and it might be related to your problem (if Intel fiddles with glibc headers). I have no notion of Intel PIN, so I'm afraid I won't be very helpful here :/ |
Yes, you're right, by simply adding that include file it breaks. Thanks a lot for the help! |
I wish you good luck! |
So this is not an issue of this library (other than it including |
Nope, my issue has nothing to do with this library. I'm closing the issue. Again, thanks for the help! |
I had the same issue yesterday. and I solved it by setting CPLUS_INCLUDE_PATH to the right value, it was "/usr/include/jsoncpp/json" which was wrong, the right value should be "/usr/include/jsoncpp". |
Hi!
I'm trying to build an old Intel PIN tool using the current GitHub's version of the single include file json.hpp. I noticed that it fails building in my system (Ubuntu 16.04 x86_64, tested with g++ 5.0 and 4.9). This the very first error I get:
I tried including features.h before "json.hpp", defining myself __GLIBC_PREREQ to trick it, but it fails in other ways, so I guess I'm doing something wrong :)
Any ideas?
The text was updated successfully, but these errors were encountered: