
On Saturday 27 June 2009 10:17:06 pm Ilya Bobir wrote:
Ilya Bobir wrote:
[...] Oh, according to ISO 14882-2003 3.5 paragraph 4 all functions, names classes and some other type of names defined in a namespace scope have external linkage by default. It means that you will violate this rule.
As this is not a ODR, you can probably work around it by just removing all symbols that refer to boost from your library. strip can be used to perform such a task. It seems to accept wildcards, so you may be able to remove all symbols in boost namespace with just one invocation. You only need to figure out the correct wild card as the C++ symbols will be mangled by the compiler in a compiler dependent way.
Nice. I have never thought of strip as a tool for other things than removing debug info. This can actually be a useful suggestion. -- Bjørn