Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
compile failed #885
compile failed #885
Comments
Minimum versions: my environment: It works. |
I see this happening as well on master for Ubuntu. @ichengde is that build from the latest pull of master? I'm using this build
|
@ichengde note that I'm actually building in a docker environment. The last build I did was maybe 3 months ago. It looks like that compilation flag was added here: This is the version of g++ I have on my machine
However it seems that this is an issue with usage of http://www.lieberbiber.de/2018/01/14/what-a-gnu-compiler-bug-looks-like/ |
Interestingly it seems to manifest itself when you can't compile properly. I just made some adjustments so it can build on Ubuntu. Now, that error doesn't happen. It is at the global scope is how it is reported
Now that it all compiles, no message. |
I got the same error, which adjustments did you make? |
Are you getting any other compilation errors? Mine was related to other compilation errors. Once I remedied them, then the error went away. I have a PR opened. You can try https://github.com/mobileben/cpprestsdk/tree/issue_887 and see if that helps. |
Is that build from the latest pull of master? No, i use 2.10.3 version. Latest commented version, it throws compilation errors. |
@ichengde thanks much. If you have the chance, can you try my PR above and see if it remedies the compilation. Just an extra outside source to make sure it builds correctly. |
I build it successfully with latest master b211145. Thank you. |
cc1plus: error: unrecognized command line option "-Wno-format-truncation" [-Werror]
env:
Linux CentOS 7
gcc 4.8.5
make 2.12.3
but follow the guild of https://github.com/Microsoft/cpprestsdk. it failed.