So I wonder how my code that can be included into different projects can find out if it is included into library of application? (on Linux, Mac and Windows)
Share
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 simple answer is that it can’t. The decision whether an object file
(generated by the compiler) is part of a library or part of the
application isn’t made until link time (and aren’t libraries part of the
application?).