Hello Souvik,

when going through the default installation sequence you will not have to define any library path for the compiler. For gcc you would simply
add a parameter -lglpk to include the dynamic load library (libglpk.so).

How did you install GLPK? Did you run:
./configure
make
sudo make install
sudo ldconfig

Which compiler do you use (e.g. IBM XL C/C++ for AIX)?
What is the command line you used to compile and link your C++ program?

Best regards

Heinrich Schuchardt




On 29.12.2012 19:30, Souvik Sutradhar wrote:
Hi
I am trying to run a c++ program in IBM AIX 6.1, which is using glpk 4.47. The 
same program is running on SOLARIS, Linux and HP-UX platform. But when I am 
trying to run the program on AIX, compilation is successful but at the time of 
linking it is giveing the following error

ld: 0711-317 ERROR: Undefined symbol: ._glp_lpx_create_prob
ld: 0711-317 ERROR: Undefined symbol: ._glp_lpx_set_prob_name
ld: 0711-317 ERROR: Undefined symbol: ._glp_lpx_add_rows
ld: 0711-317 ERROR: Undefined symbol: ._glp_lpx_add_cols
ld: 0711-317 ERROR: Undefined symbol: ._glp_lpx_set_row_bnds
ld: 0711-317 ERROR: Undefined symbol: ._glp_lpx_set_col_name
....

I have included the library path of glpk and the libglpk.a library in link 
command.

Thanks&  Regards,



Souvik Sutradhar

Senior Software Engineer | Service Group



PS Srijan Tech Park, 4th Floor, DN-52, Salt Lake Sector V, Kolkata-700091, 
India.

T : +91-33-40134880 | M : +91-9836987928

E : [email protected] | W : www.ushacomm.com | Time Zone: GMT +5:30



The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.




_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk


_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to