0

I have a library ('A') which uses other library ('B'). Now, I have developed a program which uses 'A' library. Should I link my project to the 'A' library or the both libraries? In my previous experiments, I joined the both libraries to my projects and It worked but maybe this method is not reasonable!

1 Answer 1

1

You need to link both libraries with your code. If you don't get the linking right, the linker will complain about unresolved references to functions. Also, be aware that the GCC linker at least is sensitive to the order of libraries on the command line.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.