Another SGi compiler problem

"Chris Sorenson" <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
> > 
> > Greets all,
> > 
> > I'm trying to compile on Silicon Graphics (IRIX O.S.)
> > using their MIPSPro 7.4
> > compiler, but getting this error in dialog.cc:
> > 
> > <pre>
> > cc-1028 CC: ERROR File = dialog.cc, Line = 180
> >   The expression used must have a constant value.
> > 
> >          memset(pm, '\0', sizeof(Fl_Menu_Item[n_it+1]));
> >                                               ^
> > </pre>
> > 
> > Thoughts? 
> 
>   You may try something like:
> 
>      memset(pm, '\0', (n_it+1)*sizeof(Fl_Menu_Item));
> 
> -- 
>   Cheers
>   Jorge.-

Thanks Jorge that worked! :)

Fourteen files compiled so far but then this happened in
fltkflatview.cc:

----------------------------------------------
cc-3168 CC: ERROR File = fltkui.cc, Line = 782
  A name followed by "::" must be a class or namespace name.

  bool
FltkToggleButtonResource<I>::FltkToggleButtonResource::isActivated
()
                                    ^

cc-1443 CC: ERROR File = fltkui.cc, Line = 782
 
"dw::fltk::ui::FltkToggleButtonResource<I>::FltkToggleButtonResource"
is not a
          class template.

  bool
FltkToggleButtonResource<I>::FltkToggleButtonResource::isActivated
()
       ^

2 errors detected in the compilation of "fltkflatview.cc".
-----------------------------------------------

Thoughts?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.