help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Re: Compilation problem


From: Andrew Makhorin
Subject: [Help-glpk] Re: Compilation problem
Date: Sat, 22 Sep 2007 02:00:13 +0400

> when building GLPSOL.EXE version 4.22 with Visual C 6.0 it's linker
> couldn't resolve link to _vsnprintf. Till v.4.22 VC worked OK.
> What's the matter?

The matter is that vsnprintf is missing in your standard compiler
library.

To fix the problem 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 recompile the package.






reply via email to

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