<DIV>Hi everyone,Hi Andreas:</DIV>
<DIV>Thank you for your reply!</DIV>
<DIV>I tried as you said and the previous errors I reported disappeared.The "gmake install" stage after "gmake test" was no problem,the libipopt.a and libipopt.la were generated successfully.&nbsp;But there are some new and more errors in the "gmake test" stage:</DIV>
<DIV>when I did "gmake test", it outputs :</DIV>
<DIV>&nbsp;</DIV>
<DIV>.....</DIV>
<DIV>.....</DIV>
<DIV>cd test; gmake test<BR>gmake[2]: Entering directory `/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'<BR>source='hs071_main.cpp' object='hs071_main.o' libtool=no \<BR>&nbsp;DEPDIR=.deps depmode=tru64 /bin/ksh ../../../Ipopt/../depcomp \<BR>&nbsp;cxx -pthread -DHAVE_CONFIG_H -I. -I`echo ../../../Ipopt/test` -I../inc&nbsp; -I`echo ../../../Ipopt/test/../src/Common` -I`echo ../../../Ipopt/test/../src/LinAlg` -I`echo ../../../Ipopt/test/../src/LinAlg/TMatrices` -I`echo ../../../Ipopt/test/../src/Algorithm` -I`echo ../../../Ipopt/test/../src/Interfaces`&nbsp;&nbsp; -O&nbsp; -DNDEBUG&nbsp;&nbsp;&nbsp; -c -o hs071_main.o hs071_main.cpp<BR>source='hs071_nlp.cpp' object='hs071_nlp.o' libtool=no \<BR>&nbsp;DEPDIR=.deps depmode=tru64 /bin/ksh ../../../Ipopt/../depcomp \<BR>&nbsp;cxx -pthread -DHAVE_CONFIG_H -I. -I`echo ../../../Ipopt/test` -I../inc&nbsp; -I`echo ../../../Ipopt/test/../src/Common` -I`echo ../../../Ipopt/test/../src/LinAlg` -I`echo ../../../Ipopt/test/../src/LinAlg/TMatrices` -I`echo ../../../Ipopt/test/../src/Algorithm` -I`echo ../../../Ipopt/test/../src/Interfaces`&nbsp;&nbsp; -O&nbsp; -DNDEBUG&nbsp;&nbsp;&nbsp; -c -o hs071_nlp.o hs071_nlp.cpp<BR>/bin/ksh ../../libtool --tag=CXX --mode=link cxx -pthread&nbsp; -O&nbsp; -DNDEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -o hs071_cpp&nbsp; hs071_main.o hs071_nlp.o ../src/Interfaces/libipopt.la -lm&nbsp;&nbsp; -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1 -L/usr/lib/cmplrs/cc -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s <BR>mkdir .libs<BR>cxx -pthread -O -DNDEBUG -o hs071_cpp hs071_main.o hs071_nlp.o&nbsp; ../src/Interfaces/.libs/libipopt.a -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1 -L/usr/lib/cmplrs/cc -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1/../../.. /usr/users/df8002/gcclqc/gcc411/lib/libgfortranbegin.a /usr/users/df8002/gcclqc/gcc411/lib/libgfortran.so -lm -lgcc_s -rpath /usr/users/df8002/gcclqc/gcc411/lib<BR>ld:<BR><FONT color="#f00000">Unresolved:</FONT></DIV>
<DIV>std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::compare(unsigned long, unsigned long, const char*, unsigned long) const <BR>std::list&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;::erase(std::list&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;::iterator, std::list&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;::iterator)<BR>std::list&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;::_RWdeallocate_buffers(void)<BR>.....</DIV>
<DIV>Ipopt::SmartPtr&lt;Ipopt::RegisteredOptions&gt;::SmartPtr(const Ipopt::SmartPtr&lt;Ipopt::RegisteredOptions&gt;&amp;)<BR>Ipopt::SmartPtr&lt;Ipopt::Journalist&gt;::operator *(void) const <BR>Ipopt::SmartPtr&lt;Ipopt::SolveStatistics&gt;::~SmartPtr(void)<BR>Ipopt::SmartPtr&lt;Ipopt::IpoptAlgorithm&gt;::~SmartPtr(void)<BR>Ipopt::SmartPtr&lt;Ipopt::IpoptNLP&gt;::~SmartPtr(void)<BR>Ipopt::SmartPtr&lt;Ipopt::IpoptData&gt;::~SmartPtr(void)<BR>Ipopt::SmartPtr&lt;Ipopt::IpoptCalculatedQuantities&gt;::~SmartPtr(void)<BR>Ipopt::SmartPtr&lt;Ipopt::NLP&gt;::~SmartPtr(void)<BR>Ipopt::SmartPtr&lt;Ipopt::OptionsList&gt;::operator *(void) const <BR>std::basic_ifstream&lt;char, std::char_traits&lt;char&gt; &gt;::basic_ifstream(void)<BR>std::basic_ifstream&lt;char, std::char_traits&lt;char&gt; &gt;::open(const char*, int, long)<BR>std::basic_ifstream&lt;char, std::char_traits&lt;char&gt; &gt;::~basic_ifstream(void)<BR>std::basic_ifstream&lt;char, std::char_traits&lt;char&gt; &gt;::close(void)<BR>Ipopt::IsValid(const Ipopt::SmartPtr&lt;Ipopt::Journal&gt;&amp;)<BR>Ipopt::SmartPtr&lt;Ipopt::RegisteredOptions&gt;::operator -&gt;(void) const <BR>Ipopt::SmartPtr&lt;Ipopt::NLP&gt;::operator =(Ipopt::NLP*)<BR>Ipopt::GetRawPtr(const Ipopt::SmartPtr&lt;Ipopt::TNLP&gt;&amp;)<BR>Ipopt::ConstPtr(const Ipopt::SmartPtr&lt;Ipopt::Journalist&gt;&amp;)<BR>Ipopt::SmartPtr&lt;const Ipopt::Journalist&gt;::~SmartPtr(void)<BR>Ipopt::SmartPtr&lt;Ipopt::AlgorithmBuilder&gt;::SmartPtr(Ipopt::AlgorithmBuilder*)<BR>Ipopt::SmartPtr&lt;Ipopt::AlgorithmBuilder&gt;::~SmartPtr(void)<BR>....</DIV>
<DIV><FONT color="#000000">and so on.<BR></FONT><BR>It seems that a lot of symbols can't be resolved.</DIV>
<DIV></DIV>Anyone can give me some suggestions? Thank you in advance!<BR><PRE>ÔÚ2009-12-14&nbsp;01:23:27£¬"Andreas&nbsp;Waechter"&nbsp;&lt;<A href="mailto:andreasw@watson.ibm.com">andreasw@watson.ibm.com</A>&gt;&nbsp;дµÀ£º
&gt;Hi,
&gt;
&gt;I&nbsp;know&nbsp;know&nbsp;if&nbsp;shared&nbsp;libraries&nbsp;are&nbsp;linked&nbsp;correctly&nbsp;on&nbsp;that&nbsp;system&nbsp;with&nbsp;
&gt;the&nbsp;libtool&nbsp;version&nbsp;that&nbsp;we&nbsp;are&nbsp;using.&nbsp;&nbsp;I&nbsp;suggest&nbsp;you&nbsp;rerun&nbsp;configure&nbsp;with&nbsp;
&gt;the&nbsp;--disable-shared&nbsp;flag,&nbsp;then&nbsp;you&nbsp;would&nbsp;compiled&nbsp;static&nbsp;and&nbsp;not&nbsp;shared&nbsp;
&gt;libraries&nbsp;of&nbsp;Ipopt.&nbsp;&nbsp;But&nbsp;make&nbsp;sure&nbsp;you&nbsp;clean&nbsp;up&nbsp;everything&nbsp;before&nbsp;that&nbsp;(in&nbsp;
&gt;particular&nbsp;the&nbsp;lib&nbsp;directory&nbsp;where&nbsp;the&nbsp;libraries&nbsp;are&nbsp;installed).
&gt;
&gt;Regards,
&gt;
&gt;Andreas
&gt;
&gt;
&gt;On&nbsp;Sat,&nbsp;12&nbsp;Dec&nbsp;2009,&nbsp;lqc234&nbsp;wrote:
&gt;
&gt;&gt;&nbsp;hi&nbsp;everyone&nbsp;,hi&nbsp;Andreas!
&gt;&gt;&nbsp;I&nbsp;use&nbsp;the&nbsp;gnu&nbsp;make&nbsp;and&nbsp;native&nbsp;CXX&nbsp;compiler&nbsp;on&nbsp;the&nbsp;alpha&nbsp;system.The&nbsp;configure&nbsp;and&nbsp;&nbsp;make&nbsp;stage&nbsp;work&nbsp;well,howerver&nbsp;in&nbsp;the&nbsp;make&nbsp;test&nbsp;stage&nbsp;,there&nbsp;are&nbsp;some&nbsp;errors:
&gt;&gt;&nbsp;cd&nbsp;test;&nbsp;gmake&nbsp;test
&gt;&gt;&nbsp;gmake[2]:&nbsp;Entering&nbsp;directory&nbsp;`/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'
&gt;&gt;&nbsp;chmod&nbsp;u+x&nbsp;./run_unitTests
&gt;&gt;&nbsp;./run_unitTests
&gt;&gt;
&gt;&gt;&nbsp;Running&nbsp;unitTests...
&gt;&gt;
&gt;&gt;&nbsp;Testing&nbsp;AMPL&nbsp;Solver&nbsp;Executable...
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;no&nbsp;AMPL&nbsp;solver&nbsp;executable&nbsp;found,&nbsp;skipping&nbsp;test...
&gt;&gt;&nbsp;Testing&nbsp;C++&nbsp;Example...
&gt;&gt;
&gt;&gt;&nbsp;----&nbsp;8&lt;&nbsp;----&nbsp;Start&nbsp;of&nbsp;test&nbsp;program&nbsp;output&nbsp;----&nbsp;8&lt;&nbsp;----
&gt;&gt;&nbsp;resolve_symbols:&nbsp;loader&nbsp;error:&nbsp;dlopen:&nbsp;libipopt.so.0:&nbsp;symbol&nbsp;"GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix"&nbsp;unresolved
&gt;&gt;&nbsp;----&nbsp;8&lt;&nbsp;----&nbsp;&nbsp;End&nbsp;of&nbsp;test&nbsp;program&nbsp;output&nbsp;&nbsp;----&nbsp;8&lt;&nbsp;----
&gt;&gt;
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;********&nbsp;Test&nbsp;FAILED!&nbsp;********
&gt;&gt;&nbsp;Output&nbsp;of&nbsp;the&nbsp;test&nbsp;program&nbsp;is&nbsp;above.
&gt;&gt;&nbsp;Testing&nbsp;C&nbsp;Example...
&gt;&gt;
&gt;&gt;&nbsp;----&nbsp;8&lt;&nbsp;----&nbsp;Start&nbsp;of&nbsp;test&nbsp;program&nbsp;output&nbsp;----&nbsp;8&lt;&nbsp;----
&gt;&gt;&nbsp;resolve_symbols:&nbsp;loader&nbsp;error:&nbsp;dlopen:&nbsp;libipopt.so.0:&nbsp;symbol&nbsp;"GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix"&nbsp;unresolved
&gt;&gt;&nbsp;----&nbsp;8&lt;&nbsp;----&nbsp;&nbsp;End&nbsp;of&nbsp;test&nbsp;program&nbsp;output&nbsp;&nbsp;----&nbsp;8&lt;&nbsp;----
&gt;&gt;
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;********&nbsp;Test&nbsp;FAILED!&nbsp;********
&gt;&gt;&nbsp;Output&nbsp;of&nbsp;the&nbsp;test&nbsp;program&nbsp;is&nbsp;above.
&gt;&gt;&nbsp;Testing&nbsp;Fortran&nbsp;Example...
&gt;&gt;
&gt;&gt;&nbsp;----&nbsp;8&lt;&nbsp;----&nbsp;Start&nbsp;of&nbsp;test&nbsp;program&nbsp;output&nbsp;----&nbsp;8&lt;&nbsp;----
&gt;&gt;&nbsp;resolve_symbols:&nbsp;loader&nbsp;error:&nbsp;exception&nbsp;system:&nbsp;exiting&nbsp;due&nbsp;to&nbsp;internal&nbsp;error:&nbsp;exception&nbsp;dispatch&nbsp;or&nbsp;unwind&nbsp;stuck&nbsp;in&nbsp;infinite&nbsp;loop
&gt;&gt;&nbsp;----&nbsp;8&lt;&nbsp;----&nbsp;&nbsp;End&nbsp;of&nbsp;test&nbsp;program&nbsp;output&nbsp;&nbsp;----&nbsp;8&lt;&nbsp;----
&gt;&gt;
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;********&nbsp;Test&nbsp;FAILED!&nbsp;********
&gt;&gt;&nbsp;Output&nbsp;of&nbsp;the&nbsp;test&nbsp;program&nbsp;is&nbsp;above.
&gt;&gt;&nbsp;gmake[2]:&nbsp;Leaving&nbsp;directory&nbsp;`/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'
&gt;&gt;&nbsp;gmake[1]:&nbsp;Leaving&nbsp;directory&nbsp;`/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt'
&gt;&gt;&nbsp;I&nbsp;guess&nbsp;that&nbsp;GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix&nbsp;is&nbsp;generated&nbsp;by&nbsp;the&nbsp;compiler,but&nbsp;what's&nbsp;wrong&nbsp;in&nbsp;the&nbsp;generated
&gt;&gt;&nbsp;libipopt.so.o?&nbsp;As&nbsp;to&nbsp;the&nbsp;fortran&nbsp;test&nbsp;,&nbsp;I&nbsp;really&nbsp;haven't&nbsp;any&nbsp;idea,&nbsp;I&nbsp;even&nbsp;don't&nbsp;know&nbsp;what&nbsp;the&nbsp;error&nbsp;means?
&gt;&gt;&nbsp;Anyone&nbsp;can&nbsp;help&nbsp;me?&nbsp;Thank&nbsp;you&nbsp;very&nbsp;much&nbsp;in&nbsp;advance!
&gt;&gt;
&gt;&gt;&nbsp;LiuQuanchang
</PRE><br><br><span title="neteasefooter"/></span>