Re: Using other projects

From: Josh Dahlby (n/a)
Date: 05/14/04

  • Next message: Mike Baker: "Optimization turns off expansion"
    Date: Fri, 14 May 2004 12:31:13 -0700
    
    

    Victor Bazarov wrote:
    > A Workspace defines dependencies. Dependencies are between
    Projects.
    > Projects are single-level subordinates of a Workspace. Workspaces
    cannot
    > depend on other workspaces. Does that answer your question?

    Yes. Its a shame though. Having to duplicate a build definition
    (workspace) everywhere it is used is a pain, especially when it
    changes. Oh well...

    > Static libraries don't use other libs. Strictly speaking, code may
    > reference some external symbol, but where the symbol comes from is
    not
    > necessarily known until the link time (and libs are not linked by
    > themselves, only exe's are linked). That said, see below.
    > ...

    Sorry, I'm aware of the technical details behind linking, I should
    have been more explicit in my phrasing and in the reason I wanted
    this. In many projects I always use specific libraries to resolve
    external symbols for that project. I was hoping there was a way to
    specify this in library's project definition in order to ease the use
    of these libraries.

    > #pragma comment(lib, "def.lib")

    Thanks for the pointer. I probably wont use this since I don't want
    to add this to the source code, but good info none the less.

    Thanks Victor,
    Josh


  • Next message: Mike Baker: "Optimization turns off expansion"

    Relevant Pages

    • Re: Using other projects
      ... A Workspace defines dependencies. ... Projects are single-level subordinates of a Workspace. ... Static libraries don't use other libs. ...
      (microsoft.public.vc.ide_general)
    • Libraries lost when upgrade from Visual Studio 6 to .Net 2003
      ... I have a workspace with a number of DLL projects. ... arranging the DLL project dependencies, ... dependencies, I now need to specify all the .lib files for the linker. ...
      (microsoft.public.vstudio.development)