>>>>> "Michael" == Michael  <[EMAIL PROTECTED]> writes:

Michael> Platform: SPARCstation 20 with SunOS 5.7 (configure result:
Michael> sparc-sun-solaris2.7) compiler: is using CC xform: .88
Michael> libXpm: 4.11

Hello,

What version of CC are you using?

Michael> configure is running ok. problem is like this:
Michael> ---------------------------------------------------- CC
Michael> -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../
Michael> -I/home/fan/local/include -I/usr/local/include
Michael> -I/usr/openwin/include -g -c math_macro.C CC -DHAVE_CONFIG_H
Michael> -I. -I. -I../../src -I../../images -I./../
Michael> -I/home/fan/local/include -I/usr/local/include
Michael> -I/usr/openwin/include -g -c math_panel.C
Michael> "../../images/delim0.xpm", line 4: Warning: String literal
Michael> converted to char* in initialization. ... (all this kind of
Michael> warnings) ... 

Hmm, lars, I thought we had done something about it. Should these
images use char const*?

"../../images/equation.xpm", line 30: Warning:
Michael> String literal converted to char* in initialization.
Michael> "math_panel.C", line 257: Error: Cannot return extern "C"
Michael> double(*)(double) from a function that should return char**.
Michael> "math_panel.C", line 282: Error: Formal argument 2 of type
Michael> char** in call to fl_set_pixmap_data(flobjs_*, char**) is
Michael> being passed extern "C" double(*)(double). 

This one is interesting... The relevant line for the first error is
the last in the following snippet:

char** mathed_get_pixmap_from_icon(int d)
{
   switch (d) {
    case MM_FRAC: return frac;
    case MM_SQRT: return sqrt;

The problem is probably that the compiler wants to use the sqrt()
function instead of a pixmap (maybe is it built-in). Lars, do you see
a solution other than renaming the pixmap?

JMarc

Reply via email to