Discussion:
Another SGi compiler problem
Chris Sorenson
2013-01-24 07:09:08 UTC
Permalink
Greets all,
I'm trying to compile on Silicon Graphics (IRIX O.S.)
using their MIPSPro 7.4
<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?
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?
corvid
2013-01-24 17:12:33 UTC
Permalink
Post by Chris Sorenson
Fourteen files compiled so far but then this happened in
----------------------------------------------
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 ()
?

Loading...