Hi,
I'm trying to use a program, written by others, that has C/C++ code compiled as part of its setup procedure (it's called Content - integrated environment for the analysis of dynamical systems). However, c++ (or g++ actually) complains about invalid conversions and cannot compile:
autodif.c: In function ‘char* Mult(char*, char*, char)’:
autodif.c:509: error: invalid conversion from ‘const char*’ to ‘char*’
autodif.c: In function ‘char* Sub(char*, char*, char)’:
autodif.c:659: error: invalid conversion from ‘const char*’ to ‘char*’
autodif.c:668: error: invalid conversion from ‘const char*’ to ‘char*’
autodif.c: In function ‘char* Div(char*, char*, char)’:
autodif.c:753: error: invalid conversion from ‘const char*’ to ‘char*’
autodif.c: In function ‘char* rel(char*, char*, char*, int)’:
autodif.c:1609: error: invalid conversion from ‘const char*’ to ‘char*’
autodif.c: In function ‘char* GetExpr_(const Gradient&)’:
autodif.c:1872: error: invalid conversion from ‘const char*’ to ‘char*’
autodif.c: In function ‘char* GetDer1_(const Gradient&, int)’:
autodif.c:1888: error: invalid conversion from ‘const char*’ to ‘char*’
autodif.c: In function ‘char* GetDer2_(const Gradient&, int, int)’:
autodif.c:1904: error: invalid conversion from ‘const char*’ to ‘char*’
autodif.c: In function ‘char* GetDer3_(const Gradient&, int, int, int)’:
autodif.c:1921: error: invalid conversion from ‘const char*’ to ‘char*’
It's unlikely that the authors made a mistake and distributed the software without noticing it, so probably I'm missing something. But what? How do I find out?
Any suggestion is welcome. :)