Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • So I can include both libraries in the main project even though one is dependent on the other? I understand that only one definition of a symbol is allowed. The API libraries are canned. Commented Aug 30, 2012 at 13:58
  • 2
    No, you have to link both libraries to the program which results from your main project. In VS you create an "executable" project type and set both libraries as "references". Commented Aug 30, 2012 at 14:11
  • MyProj Lib is dependent upon the API Lib. I can link both them in the MainProj, but how would that work when I go to build MyProj Lib? Commented Aug 30, 2012 at 14:19
  • 3
    When MyProj Lib is compiled, it (or the compiler/librarian) does not need to know where the symbols from API Lib are. It just needs to know they are declared. The symbols are required by the linker, when MainProj Exeis linked. Commented Aug 30, 2012 at 15:26