vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi My program to be built on AIX 5.2/5.3 as shared object has STL string vector map iterators code in it. If I use clx which library should I use for STL? Is it supported on xlc C++ compiler? Visual Age version: 6.0.00 . Thanks in advance, Nilesh |
| |||
| On 20 Sep 2006 07:47:46 -0700, Nilesh wrote: > Hi > My program to be built on AIX 5.2/5.3 as shared object has STL string > vector map iterators code in it. If I use clx which library should I > use for STL? Is it supported on xlc C++ compiler? > Visual Age version: 6.0.00 . > Thanks in advance, > Nilesh The xlc compiler is a C compiler, not C++. The C++ compiler is called xlC, or preferebly xlC_r (the thread-safe version). STL is part of the standard library and therefore does not need to be specified on the command line as long as you are using xlC or xlC_r to perform the link step. -- Dave Seaman U.S. Court of Appeals to review three issues concerning case of Mumia Abu-Jamal. <http://www.mumia2000.org/> |
| |||
| Thanks for your reply. Yes I am using xlC. 1. I get lots of ld: 0711-224 WARNING: Duplicate symbol: errors How can I avoid them on it? 2. Also when I build shared object, and later use it in exe, I exe linker does not find some symbols from that so, and when i do nm , symbols that are present in code , are still not found in .so I tried using -bexpfull but still giving error for symbols undefined. Thanks Nilesh Dave Seaman wrote: > On 20 Sep 2006 07:47:46 -0700, Nilesh wrote: > > Hi > > > My program to be built on AIX 5.2/5.3 as shared object has STL string > > vector map iterators code in it. If I use clx which library should I > > use for STL? Is it supported on xlc C++ compiler? > > > Visual Age version: 6.0.00 . > > > Thanks in advance, > > Nilesh > > The xlc compiler is a C compiler, not C++. The C++ compiler is called > xlC, or preferebly xlC_r (the thread-safe version). STL is part of the > standard library and therefore does not need to be specified on the > command line as long as you are using xlC or xlC_r to perform the link > step. > > > -- > Dave Seaman > U.S. Court of Appeals to review three issues > concerning case of Mumia Abu-Jamal. > <http://www.mumia2000.org/> |
| ||||
| On 21 Sep 2006 07:21:51 -0700, Nilesh wrote: > Thanks for your reply. Yes I am using xlC. > 1. I get lots of ld: 0711-224 WARNING: Duplicate symbol: errors > How can I avoid them on it? > 2. Also when I build shared object, and later use it in exe, I exe > linker does not find some symbols from that so, and when i do nm , > symbols that are present in code , are still not found in .so > I tried using -bexpfull but still giving error for symbols undefined. > Thanks > Nilesh Nilesh, The duplicate symbols problem is common with xlC. There is a discussion of this at <http://www-1.ibm.com/support/docview.wss?uid=swg21044588>, which suggests using the -qstaticinline flag when compiling. It's hard to say what the problem might be with unresolved symbols. Are you sure the shared libraries are being searched? It may be useful to turn on a load map. You could also try building a static library to see whether that solves the linking problem. -- Dave Seaman U.S. Court of Appeals to review three issues concerning case of Mumia Abu-Jamal. <http://www.mumia2000.org/> |