|
Boost : |
From: Paul Hamilton (paul_at_[hidden])
Date: 2003-08-17 23:03:59
After studying my problem with this:
template<class Tr, class Ch> inline
void empty_buf(BOOST_IO_STD basic_ostringstream<Ch,Tr> & os) {
static const std::basic_string<Ch, Tr> emptyStr;
os.str(emptyStr);
}
I want to post the actual link error I get back:
darwin-Link-action
libs/bin/libcpppersistxmllib.dylib/darwin/debug/runtime-link-dynamic/
shared-linkable-true/libcpppersistxmllib.dylib
ld: common symbols not allowed with MH_DYLIB output format
libs/bin/libcpppersistxmllib.dylib/darwin/debug/runtime-link-dynamic/
shared-linkable-true/parse.o definition of common
_ZZN5boost2io6detail30_GLOBAL__N_xml_parse.cpp84XT3a9empty_bufISt11char_
traitsIcEcEEvRSt19basic_ostringstreamIT0_T_SaIS7_EEE8emptyStr (size 4)
libs/bin/libcpppersistxmllib.dylib/darwin/debug/runtime-link-dynamic/
shared-linkable-true/parseobj.o definition of common
_ZZN5boost2io6detail33_GLOBAL__N_xml_parseobj.cpp2bh23a9empty_bufISt11ch
ar_traitsIcEcEEvRSt19basic_ostringstreamIT0_T_SaIS7_EEE8emptyStr (size
4)
export DYLD_LIBRARY_PATH
c++ -g -Wl,-dynamic -nostartfiles -Wl,-dylib -Wl,-ldylib1.o -o
"libs/bin/libcpppersistxmllib.dylib/darwin/debug/runtime-link-dynamic/
shared-linkable-true/libcpppersistxmllib.dylib"
"libs/bin/libcpppersistxmllib.dylib/darwin/debug/runtime-link-dynamic/
shared-linkable-true/parse.o"
"libs/bin/libcpppersistxmllib.dylib/darwin/debug/runtime-link-dynamic/
shared-linkable-true/parseobj.o"
"libs/bin/libcpppersistxmllib.dylib/darwin/debug/runtime-link-dynamic/
shared-linkable-true/writeobj.o" \
\
You can see this is a bit weird because the names are mangled to
something completely different, but the linker says something about
"common" problems. Does anybody know what this is about?
Maybe the problem is that the symbols should really be common but are
given two completely different names, since they are compiled in too
different units? Not sure.
Paul.
---------------------
Paul Hamilton
pHamtec P/L - Software Makers
http://www.phamtec.com/
mailto:paul_at_[hidden]
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.
-----------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk