help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Output streams


From: Andrew Makhorin
Subject: Re: [Help-glpk] Output streams
Date: Thu, 25 Oct 2001 21:27:27 +0300

>The problem is that this requires recompilation, which is not very
>convenient with a globally installed .a file (like with the Debian
>package I uploaded yesterday :)

You need to change neither the distribution nor libglpk.a. You should
just to place your own versions of print(), error(), and/or fault() in
your program in order to make them explicitly available to the linker.
For instance, you can write something like this:

#include "glpset.h"

void print(char *fmt, ...)
{
      ...format and send a message to somewhere...
}

and then compile and link this file with other parts of your program,
in which case glpk will use your print() instead the library one.






reply via email to

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