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" ?
>
> On Sat, Nov 21, 2015 at 3:01 PM, Dušan Plavák <[email protected]>
> wrote:
>
>> Undefined reference is probably linker error. So you need add -lglpk
>>
>> 2015-11-21 14:35 GMT+01:00 Ali Marandi <[email protected]>:
>>
>>> Hello everyone.
>>>
>>> I am using the "glpk.h" in my code which I run in the ns-3 using waf.
>>> Even if I have put the file "glpk.h" in the directory in which my code is
>>> located, I receive the following errors once I run my code with "./waf
>>> --run":
>>>
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2183:
>>> undefined reference to `glp_create_prob'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2184:
>>> undefined reference to `glp_set_prob_name'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2185:
>>> undefined reference to `glp_set_obj_dir'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2186:
>>> undefined reference to `glp_add_rows'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2187:
>>> undefined reference to `glp_add_cols'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2192:
>>> undefined reference to `glp_set_col_bnds'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2193:
>>> undefined reference to `glp_set_obj_coef'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2199:
>>> undefined reference to `glp_set_row_bnds'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2223:
>>> undefined reference to `glp_load_matrix'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2224:
>>> undefined reference to `glp_simplex'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2229:
>>> undefined reference to `glp_get_col_prim'
>>> /home/ali/ns-allinone-3.21/ns-3.21/build/../scratch/LDNC+BF.cc:2295:
>>> undefined reference to `glp_delete_prob'
>>>
>>> Please note that I have included "glpk.h" in my code. And my machine is
>>> a ubuntu 14.04.
>>>
>>> I appreciate if you help me out with this.
>>>
>>> Thanks and regards,
>>> A
>>>
>>> _______________________________________________
>>> Help-glpk mailing list
>>> [email protected]
>>> https://lists.gnu.org/mailman/listinfo/help-glpk
>>>
>>>
>>
>>
>> --
>> S pozdravom Dušan Plavák
>>
>
>
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to