help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking Problem


From: pocmatos
Subject: Linking Problem
Date: 9 Nov 2005 10:03:55 -0800
User-agent: G2/0.2

Hi all,

I'm currently trying to link a program to a library which results in
error. The library is a cplex75 library which my group bought to ilog a
few years ago. I'm currently running g++ :
$ g++-3.3 -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Thread model: posix
gcc version 3.3.3 (Debian)

Unfortunately I'm not admin so it's not in my hands to upgrade or
downgrade whatever I want.
Linking results in the following:
$ g++-3.3 -Wno-deprecated -o blend blend.cpp -I
/usr/local/local-apps/cplex75/include/ -I
/usr/local/local-apps/concert12/include/ -L
/usr/local/local-apps/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_mt/
-L
/usr/local/local-apps/concert12/lib/i86_linux2_glibc2.2_gcc3.0/static_mt/
-pthread -lilocplex -lcplex -lconcert

/usr/local/local-apps/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_mt//libcplex.a(utildisk.o)(.text+0xbe):
In function `CPXPtempdir':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/local/local-apps/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_mt//libilocplex.a(ilocplex.o)(.gnu.linkonce.t._ZSt10__pad_charIcSt11char_traitsIcEEvRSt9basic_iosIT_T0_EPS3_PKS3_ii+0x1ed):
In function `void std::__pad_char<char, std::char_traits<char>
>(std::basic_ios<char, std::char_traits<char> >&, char*, char const*, int, 
>int)':
: undefined reference to
`std::_Format_cache<char>::_Format_cache[in-charge]()'
/usr/local/local-apps/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_mt//libilocplex.a(ilocplex.o)(.gnu.linkonce.t._ZNSt13_Format_cacheIcE11_S_callbackENSt8ios_base5eventERS1_i+0xf6):
In function
`std::_Format_cache<char>::_S_callback(std::ios_base::event,
std::ios_base&, int)':
: undefined reference to
`std::_Format_cache<char>::_Format_cache[in-charge]()'
collect2: ld returned 1 exit status

This is kind of sad because I cannot create a new cplex library since I
do not have access to the code and I cannot downgrade g++ since I'm not
admin but I would indeed like to compile this. Does anyone know of a
workaround for this? A magic flag? A magic piece of code? LOL

Oh well, otherwise I will give up and move on.

Thanks for any helpful suggestion you might give.
Cheers,

Paulo Matos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]