2

HP-UX' linker complains, when I use -Bhidden_def, that std:: stuff is not exported but it is imported by (my) shared library, e.g.:

/usr/ccs/bin/ld: (Warning) Symbol "std::basic_string<char,std::char_traits<char>,std::allocator<char>>::npos" is not exported but is imported by a shred library

Should I be worried and use -Bhidden instead?

I am simply trying to hide non-public symbols. -Bhidden_def plus __declspec(dllexport) simply looks like the closest equivalent of Visual Studio behaviour.

sehe
  • 374,641
  • 47
  • 450
  • 633
wilx
  • 17,697
  • 6
  • 59
  • 114

0 Answers0