> compling glpmpl05.c from glpk 4.34 fails under SunOS (gcc 4.3) for me:
> glpk/src/glpmpl05.c: In function '_glp_mpl_fn_time2str':
> glpk/src/glpmpl05.c:487: error: expected identifier or '(' before
> numeric constant
> glpk/src/glpmpl05.c:489: error: lvalue required as left operand of
> assignment
> glpk/src/glpmpl05.c:490: error: lvalue required as left operand of
> assignment

> The problem seem to be that at line 487 a variable 'sun' is declared.
> Likely, 'sun' has been defined to some numeric constant in some system
> header file, since this is a Sun operating system.

Thank you for the bug report.

> Would it be possible to just rename this variable?

It is sufficient to #undef it.

I have fixed the bug. The changes will appear in the next version of
package.


Andrew Makhorin



_______________________________________________
Bug-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to