Thanks Andrew, for your reply.

Regarding the proper installation of glpk, I should mention that I have

I had used before two other libraries, but I did not have any problems,
i.e., I had put the ".h" or ".hpp" file in the directory my program is
located (in ns-3 it is the "scratch" folder), and then I run my program
with "waf" (./waf --run filename.cc). Please note that the Only way of
running programs in the ns-3 is with waf...So how I can use gcc ?

Thanks for kindly guiding me more.

On Sat, Nov 21, 2015 at 3:30 PM, Andrew Makhorin <[email protected]> wrote:

> On Sat, 2015-11-21 at 15:16 +0100, Ali Marandi wrote:
> > I am not running with gcc, am running with waf !.
> >
> > On Sat, Nov 21, 2015 at 3:05 PM, Ali Marandi <[email protected]>
> > wrote:
> >         Thanks Dusan, you mean "./waf --run -lglpk filename.cc" ?
>
> You need to properly install glpk and then perform some equivalent of
> the following command:
>
>    gcc foo.c -lglpk -lm
>
> in the same way as you usually link your programs with libraries.
>
>
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to