[EMAIL PROTECTED] (Uwe Wolfram) writes:
| -------- src/table.C -------------------------------------------------
|
| "table.C", line 1422: Error: A previously specified default argument
| value cannot be changed.
|
| Source is:
| const char *LyXTable::getDocBookAlign(int cell, bool isColumn=false)
|
| Workaround:
| delete "=false" from corresponding prototype in table.h
Fixed in cvs.
| -------- src/LyXAction.C ---------------------------------------------
|
| "LyXAction.C", line 513: Error: Cannot use const char* to initialize char*.
|
| Source is:
| int LyXAction::LookupFunc(char const *func)
| {
| [......]
| char *arg = strchr(func, ' ');
|
| Workaround:
| Use a typecast
| char *arg = strchr((char*) func, ' ');
Hmm... so Sun has a bug in its strchr prototype.
(prototype should be: "char *strchr(const char *s, int c);"
Your fix should not be really be needed.
The better fix would probably be to rewrite LoopupFunc to take a
string parameter instead.
btw. I try to stop using c-style casts so your workaround should be
(if your compiler can handle const_cast)
char * arg = strchr(const_cast<char*>(func), ' ');
Of course there is a problem ... there have been some huge changes in
the cvs sources since 1.0.4, most of them to begin using ANSI C++
constructs and some (too many) compilers are lacking in that respect.
We would be very happy to get reports on how the cvs sources compiles
on different platforms.
Lgb