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?
Chris wrote:
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?
Any problem if you change bool FltkToggleButtonResource<I>::FltkToggleButtonResource::isActivated () to bool FltkToggleButtonResource<I>::isActivated () ?
participants (2)
-
corvid@lavabit.com
-
csoren@isd.net