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

cpp version don't compile with gcc-4.4 linux #32

Closed
GoogleCodeExporter opened this issue Sep 8, 2015 · 2 comments
Closed

cpp version don't compile with gcc-4.4 linux #32

GoogleCodeExporter opened this issue Sep 8, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

pepone@sirius ~/projects/cmsdemo/server $ diff 
/home/pepone/diff_match_patch_20101216/cpp/diff_match_patch.cpp 
diff_match_patch.cpp
22a23
> #include <limits>
70c71
<   qDebug(qPrintable(QString("Diff(") + strOperation(operation) + 
QString(",\"")

---
>   qDebug("%s", qPrintable(QString("Diff(") + strOperation(operation) + 
QString(",\"")


Original issue reported on code.google.com by pepone.o...@gmail.com on 23 Dec 2010 at 9:16

@GoogleCodeExporter
Copy link
Author

Thanks.  I don't see the error on any of my platforms, but have made the 
appropriate changes.  That qDebug line should never have been in 
diff_match_patch in the first place, it has been removed.  Similar qDebug lines 
in diff_match_patch_test have been updated as well.

These changes will be in the next push (early next week?)

Original comment by neil.fra...@gmail.com on 28 Dec 2010 at 11:58

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

I faced the same problem because I downloaded the code zipfile 
diff_match_patch_20120106.zip, which is marked as "Featured". Maybe it would be 
a good idea to change it or put a notice on the docs. From what I've read, this 
happens because some compilers put the header automatically for you, which is 
not gcc's case.

Original comment by thiago.camposmoraes on 24 May 2012 at 6:25

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

1 participant