-
Notifications
You must be signed in to change notification settings - Fork 2.7k
nvcc + gcc -> error #486
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
Comments
I suppose we could make that non-private? Have you tried with the regular (non-amalgamated) headers? |
Yes sure, I didn't realize it was private... Yes, I also tried to use the non-amalgamated headers, then the error/warning is in line 221/749 and 221/800 |
ahh now I get it: changing line 221 to public makes the error go away |
line 219 I mean of course. You might be interested that it then compiles flawlessly with nvcc-7.5 + gcc-4.9 as well as with nvcc-7.5 + icc-14.0.2 as well as with gcc-4.9 and icc-14.0.2 alone. I'll keep it as a workaround, don't know if you can live with making it non-private? Or do you have other solutions you want me to try? |
Can you |
Did it. The issue can be closed I guess? |
I'm encountering the same issue:
json/version.h:
This happens when using gcc 6.4 and clang 4.0.1 as the host compiler.
This commit (3eda8a6) isn't present in |
I don't know what you mean, but I can say that's a very old commit.
Try updating to |
Thanks for the quick reply. I am using 1.8.3, see my This bug is still present even though I'm using the 1.8.3 version, however that patch from 0.y.z doesn't exist in I can definitely open up a PR based on what was previously done. |
I'm not sure what's going on here. But if the PR passes TravisCI, I think we can merge it. |
CZString as public when using NVCC, see issue #486
Thank you. Happy holidays. |
Just upgraded our project to the c++11 standard (I know, I know, we're slow) and stumbled on the same issue on the 1.8.4 tag. I guess my old fix did not make it into the master branch :( but with the PR from @dbeurle on master everything is fine again :) |
We had this problem a few years ago where I worked. Should this be a bug opened with the nvcc compiler @mwiesenberger? |
I think it can't hurt to open a bug report. Can you construct a minimal example to reconstruct the bug? |
I can but I'm away from any computer with a CUDA toolchain for testing until Monday night. Are you a NVIDIA registered developer? |
No unfortunately not, if you can do it easily I think the problem can wait til Monday :) |
Uh oh!
There was an error while loading. Please reload this page.
Hi, thank you for this great library.
However, I have an issue when I try to use nvcc to compile an application:
I am on your 0.10.6 branch.
I have a file that includes the amalagated json.h header, which is compiled by nvcc-7.5 with gcc-4.9 as the backend compiler. I then get the following error message
I don't really know what to make of it. In any application that includes json.h and I compile with gcc-4.9 I don't get any errors. If I compile with nvcc with icc-14.0.2 as the backend I get the same message but as a warning instead of an error
Again json.h doesn't cause trouble in any project I compile solely with icc-14.0.2.
Any ideas? I'm a bit at a loss if it's an nvcc problem or a problem with the code. I'd appreciate your help.
best
Matthias
The text was updated successfully, but these errors were encountered: