|
From: | Ali Marandi |
Subject: | Re: [Help-glpk] compilation problem in ns3 |
Date: | Sat, 21 Nov 2015 15:05:21 +0100 |
Undefined reference is probably linker error. So you need add -lglpk2015-11-21 14:35 GMT+01:00 Ali Marandi <address@hidden>:_______________________________________________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
address@hidden
https://lists.gnu.org/mailman/listinfo/help-glpk
--S pozdravom Dušan Plavák
[Prev in Thread] | Current Thread | [Next in Thread] |