|
From: | Souvik Sutradhar |
Subject: | Re: [Help-glpk] Linking error in AIX 6.1 for glpk 4.47 |
Date: | Sun, 30 Dec 2012 20:13:16 +0530 |
Hello Heinrich , Thanks for replying. Below are the installation steps for GLPK 1. ./configure CC=xlC128_r --prefix=/data4/balios/glpk-4.47/glpkgenerated 2. make 3. make install I am using xlC128_r compiler version 8 for both GLPK and the program. The command line for compiling the program :xlC128_r -g -brtl -b64 -qnotempinc -qrtti=all -qenum=8 -qfuncsect -bnoquiet -D_RWBUILDSHARED -DRW_MULTI_THREAD -D_RWCONFIG_12d -D_THREAD_SAFE -DNOMINMAX -DACE_HAS_EXCEPTIONS -DCORBA_TAO -DAIX -D USE_STD -I./Include -I/data1/rwbuild/RogueWave/SourcePro/Ed10u1 -I/data4/balios/TAO -I/data4/balios/TAO/TAO -I/data4/balios/TAO/TAO/orbsvcs -I/data4/balios/TAO/TAO/orbsvcs/ImplRepo_Service -I/data4/balios/tcl8.5.12/generic -I/data4/balios/glpk-4.47/glpkgenerated/include -DSOREQUEST_UNIXSYSTEM -q64 -D_DEBUG -g -I/data4/balios/xerces-c_2_8_0-powerpc_64-aix-xlc_7_0/include -DMODULE_NAME="LCR" -o ./UIBSLCRDataset.o -c UIBSLCRDataset.cpp
The command for linking :xlC128_r -g -brtl -b64 -qnotempinc -qrtti=all -qenum=8 -qfuncsect -bnoquiet -D_RWBUILDSHARED -DRW_MULTI_THREAD -D_RWCONFIG_12d -D_THREAD_SAFE -DNOMINMAX -DACE_HAS_EXCEPTIONS -DCORBA_TAO -DAIX -D USE_STD -I./Include -I/data1/rwbuild/RogueWave/SourcePro/Ed10u1 -I/data4/balios/TAO -I/data4/balios/TAO/TAO -I/data4/balios/TAO/TAO/orbsvcs -I/data4/balios/TAO/TAO/orbsvcs/ImplRepo_Service -I/data4/balios/tcl8.5.12/generic -I/data4/balios/glpk-4.47/glpkgenerated/include -DSOREQUEST_UNIXSYSTEM -q64 -D_DEBUG -g -DMODULE_NAME="LCR" -o Bin/LCR UIBSLCRDataset.o -L/data4/balios/glpk-4.47/glpkgenerated/lib -L/data4/balios/TAO/lib -L/data4/balios/tcl8.5.12/unix -L/data1/rwbuild/RogueWave/SourcePro/Ed10u1/lib -L/data2/ora10g/oracle/product/10.2.0/db_1/lib -lACE -lTAO -lTAO_CosNaming -lTAO_PortableServer -lTAO_AnyTypeCode -lTAO_ImR_Locator -lTAO_ImR_Locator_IDL -lTAO_ImR_Client -ldbt7012d -lthread3012d -ltls8012d -lnetwork2012d -litc2412d -lthrexcept2412d -lfunctor2412d -lpointer2612d -ltrace2412d -lfunctor_list2412d -lsync3012d -lfunctor_map2412d -lfactory1512d -ltypes1412d -lclntsh -ltcl8.5 -lnsl -lintl -lpthread -lX11 -lm -ldl -lthread -lXext -lglpk
----- Original Message ----- From: "Xypron" <address@hidden>
To: "Souvik Sutradhar" <address@hidden> Cc: <address@hidden>; <address@hidden> Sent: Sunday, December 30, 2012 1:01 AM Subject: Re: [Help-glpk] Linking error in AIX 6.1 for glpk 4.47
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 simplyadd 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:HiI 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 errorld: 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 GroupPS Srijan Tech Park, 4th Floor, DN-52, Salt Lake Sector V, Kolkata-700091, India.T : +91-33-40134880 | M : +91-9836987928E : address@hidden | W : www.ushacomm.com | Time Zone: GMT +5:30The 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 address@hidden https://lists.gnu.org/mailman/listinfo/help-glpk
[Prev in Thread] | Current Thread | [Next in Thread] |