
On Jul 12, 2008, at 8:12 AM, Valerie wrote:
I haven't had problems compiling CVS before. This time though, 3 files seem to be giving me problems:
/usr/include/poppler/Object.h extension/internal/pdfinput/svg-builder.cpp extension/internal/pdfinput/pdf-parser.cpp
Nearly all of it involves the following message:
warning: deprecated conversion from string constant to ‘char*’
There are too many of them, so I can't copy/paste them all, but when looking at the files they involve lines such as:
error(-1, "Weird page contents");
Any idea where the error may come from? The error function perhaps?
Well, first of all those are just "warning"s, so they aren't actually blocking you from compiling. What would be doing so would be some "error:" or perhaps some link problems with a different phrase, but at the end.
That specific warning is because a string constant is unmodifiable, but it is being fed to a function that uses a "char*" parameter instead of "const char*" and thus is marked as possibly changing the contents of the string you pass in. Sometimes it is due to an outdated API declaration not using "const" when it should, but other times it is showing an actual problem.
To find your real problem with compilation, though, look through the rest of the output for the errors. That's also one reason I like doing a compile from inside of emacs; it makes it quite easy to watch and search the output.