Registered Member
|
Hello all,
we are building a library for ios, using Eigen... Ios libraries (as you may know) can only be static libraries. After searching a long time on the interwebs, we have come to the conclusion that the only way of hiding our symbols in our library is to put everything in anonymous namespaces, something we have been doing for our lib. So, basically our whole API now looks like: Api.h ... Api.cpp
We've managed to shove everything into the anonymous namespace (including some rather fancy C++ libs), but we fail to add eigen to it. The problem is that we might get clashes if someone uses two libraries that both use Eigen. Our interface does not use eigen, so we would rather not expose Eigen's symbols... Doing
Gets us into a very messy situation with errors all over the place in both eigen ( std::max -> ::std::max ) and afterwards in our own code. So the question is: is there a way to use Eigen like this? - bram |
Moderator
|
hm, I don't think there is any risk of name clash. So I'd not bother at trying to hide Eigen's symbols.
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]