Conversion from boost shared_ptr to Teuchos::RCP
Created by: guoluanjing
Hello there,
I just joined gitHub to ask a question about the conversion between boost shared_ptr and Teuchos::RCP.
I included the header file of "Teuchos_RCPBoostSharedPtrConversionsDecl.hpp" from the source directory, and used the following template
template<class T>
RCP<T> rcp( const boost::shared_ptr<T> &sptr );
But I've got linking errors that reads: undefined reference to `Teuchos::RCP Teuchos::rcp(boost::shared_ptr const&)'.
My question to you is: Is this the way to go for this conversion, and if yes, what do you think I am doing wrong here?
Thanks a lot in advance, Luanjing