On Sunday, March 8, 2015 at 10:24:17 PM UTC-4, hardik gohil wrote:
>
> My compiled program fail to run with this error:
> can't resolve symbol '_ZN8CryptoPP6FilterC2EPNS_22BufferedTransformationE'
>
> when I compile with disabling CXXFLAGS += -fvisibility=hidden 
> -fvisibility-inlines-hidden 
>
> check for symbol using command 
>  
> # $NM --dynamic libcryptopp.so | grep 
> "_ZN8CryptoPP6FilterC2EPNS_22BufferedTransformationE"
> 00279c70 T _ZN8CryptoPP6FilterC2EPNS_22BufferedTransformationE
>

Crapp... I only gave you part of the information you needed.

Add the following to the end of config.h. A good place is after the 
__MWERKS__ tests to set CRYPTOPP_DLL:

#if __GNUC__ >= 4
  #undef CRYPTOPP_DLL
  #define CRYPTOPP_DLL __attribute__ ((visibility ("default")))
#endif

Here's the result on a Ubuntu test machine:

cryptopp$ nm -D libcryptopp.so | c++filt | grep Filter::Filter
00000000001b06e6 T 
CryptoPP::Filter::Filter(CryptoPP::BufferedTransformation*)
00000000001b06e6 T 
CryptoPP::Filter::Filter(CryptoPP::BufferedTransformation*)

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to