Issue on root_v5.22.00.source

I am using VC8 & Cygwin, Cint7 of root_v5.22.00.source can not be compiled correctly.

  1. There will be error message:
    cint7/src/newlink.cxx(2331) : error C2440: ‘=’ : cannot convert from ‘const char *’ to ‘char *’ Conversion loses qualifiers
    cint7/src/newlink.cxx(4383) : error C2440: ‘initializing’ : cannot convert from ‘const char *’ to ‘char *’ Conversion loses qualifiers

I find, in C code, “char * strstr(const char *, const char *)” is defined, but in C++, it should be, “CONST char * strstr(const char *, const char *)” .
At the above 2 lines code(newlink.cxx, at 2331and 4383 ), “strstr” will return "const char * " value, but this return value is given to char pointer, so it error.

“p = (char *) strstr(…” should replace “p = strstr(…”

  1. in “cint\reflex\inc\Reflex\Builder \unionbuilder.h”, line 112,
    “RFLX_API” is omitted now.
    it should be as “class RFLX_API UnionBuilder {”, or UnionBuilder class will not be exported in DLL, which is being used among cint7.

Is right? Thanks!

Shan

Hi,

Thanks for reporting this issues; they have already been correctly in the svn trunk (about 3 weeks ago).

Cheers,
Philippe.