I’m developing a static library where i need to use the open source SBJson class.
what is the best way to include the SBJson class to my library without needing to include all its header files(.h) when distributing my static library ??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best way is not to (attempt to) hide the dependency, and then tell the clients they will need to build and link to the SBJson library.
The safe alternative would be a fork of SBJson with all symbols redeclared as different names (e.g. a unique prefix). This will ensure your client has zero hassle linking your library with their dependencies.