Originally posted by: SystemAdmin
[rocarvaj said:]
[quote author=Almada-Lobo link=topic=418.msg1201#msg1201 date=1216285160]
Hi,
I'm not able to compile a C++ warehouse.cpp example through the available makefile. I'm getting the following error:
CC -pto -PIC -xtarget=ultra -xarch=v8plusa -DIL_STD -xO4 -DNDEBUG -I/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/include -I/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/include -I/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/include -DILOUSEMT -mt /mit/oplstudio_v5.5/distrib/sun4x_510/opl55/examples/cpp/src/warehouse.cpp -c
CC: Warning: -xarch=v8plusa is deprecated, use -m32 -xarch=sparcvis instead
"/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/include/ilconcert/ilotuplecollectioni.h", line 688: Warning: IloTupleSetI::sort hides the virtual function IloDiscreteDataCollectionI::sort(long).
1 Warning(s) detected.
CC -pto -PIC -xtarget=ultra -xarch=v8plusa -DIL_STD -xO4 -DNDEBUG -I/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/include -I/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/include -I/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/include -DILOUSEMT -mt warehouse.o -o warehouse -L/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/lib/ultrasparc32_9_8/static_pic_mt -lopl -liljs -L/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/lib/ultrasparc32_9_8/static_pic_mt -lilocplex -lcp -lconcert -L/mit/oplstudio_v5.5/distrib/sun4x_510/opl55/bin/ultrasparc32_9_8 -lcplex110 -ldbkernel -ldblnkdyn -lilog -ldl -lsocket -lnsl -lm -lsunmath -mt
CC: Warning: -xarch=v8plusa is deprecated, use -m32 -xarch=sparcvis instead
./warehouse
ld.so.1: warehouse: fatal: libcplex110.so: open failed: No such file or directory
It looks like it's not finding libcplex110.so... Something similar happened to me once.
*** Signal 9
make: Fatal error: Command failed for target `execute'
You can add the path where libcplex110.so is located to [tt]LD_LIBRARY_PATH[/tt]. For example, in my case (have to write this in the command line):
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/ilog/cplex110/bin/x86_rhel4.0_3.4
export LD_LIBRARY_PATH
(it should be in the bin/ folder of cplex).
To make this permanent, you can add the previous two lines to your [tt].bash_profile[/tt].
Hope this helps!
#DecisionOptimization#OPLusingCPLEXOptimizer