bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] Compiling error


From: Andrew Makhorin
Subject: Re: [Bug-glpk] Compiling error
Date: Fri, 21 Sep 2007 16:04:23 +0400

> When I compile glpk4.22 with VS.NET 2003 on WinXP there is an
> error:
> xvprintf can't link vsnprintf. I didn't change source code

Thank you for the bug report.

It seems that vsnprintf is missing in your compiler library.

To fix the bug please replace the folliwing fragment in the routine
xvprintf (file glplib05.c, lines 77-81):

#if 0
      vsprintf(buf, fmt, arg);
#else
      vsnprintf(buf, sizeof(buf), fmt, arg);
#endif

by

#if 1
      vsprintf(buf, fmt, arg);
#else
      vsnprintf(buf, sizeof(buf), fmt, arg);
#endif

and then rebuild the library.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]