[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
need help on g++ linking
From: |
Zhifeng Li |
Subject: |
need help on g++ linking |
Date: |
Wed, 4 Feb 2004 20:37:16 -0600 |
Dear All:
I was trying to link the my codes with some libraries using g++ compiler.
Unfortunately, I got the following linking error. Could anyone share some
experience or suggestion? Thank you very much. The linking error follows.
g++ -static -g -Wall -pedantic -I/home/kuhn/zhifeng/Lib1/include
-I/meas/lib/ilog/cplex81/include parameters.o LinearEqMatrix.o Memory.o
Node.o Problem.o linearAlgebra.o computation.o solution.o recover.o
quadratic.o simplex.o Mathprog.o Mathprog_GBR.o Mathprog_LLL.o
Mathprog_OneDSearch.o Try.o -o ../ipsolver -L/home/kuhn/zhifeng/Lib1/lib
-L/meas/lib/ilog/cplex81/lib/ultrasparc_5_5.0/static_pic_mt -lLiDIA -lntl
-lgmp -lcplex -mt -lm -lsocket -lnsl
Undefined first referenced
symbol in file
dlclose /usr/lib/libnsl.a(netdir.o)
dlsym /usr/lib/libnsl.a(netdir.o)
dlopen /usr/lib/libnsl.a(netdir.o)
dlerror /usr/lib/libnsl.a(netdir.o)
ld: fatal: Symbol referencing errors. No output written to ../ipsolver
collect2: ld returned 1 exit status
make: *** [prog] Error 1
Any comment is appreciated.
Zhifeng
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- need help on g++ linking,
Zhifeng Li <=