CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2011
    Location
    India
    Posts
    333

    How to set the property for use the static lib file in VC2003

    Hi,

    Later i used trial version of vc2010 and created a static library using the below link. Its worked.

    http://www.codeproject.com/Articles/...amic-Libraries

    But now I'm using VC2003.Details as follows,
    Microsoft Development enviroinment 2003 Version 7.1.3088
    CopyRight @ 1987-2002 Microsoft Corporation. All Rights Reserved.

    Microsoft .Net Framework 1.1 Version 1.1.4322
    CopyRight @ 1998-2002 Microsoft Corporation. All Rights Reserved.
    I used the same procedure & created the Static lib.

    but couldn't use this lib file in my main project.B'cos the project's property window doesn't have the
    Common Properties -> Framework & References
    Couldn't find.

    Here with i'm attached you missed property in VC2003. Kindly find the attachment.

    How can i set this property?

    Is any other way to use static lib in main project (application)?
    Attached Images Attached Images  
    Regards,

    SaraswathiSrinath

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: How to set the property for use the static lib file in VC2003

    Not sure I'm following the question, but to use a .lib, just add it to the project.

  3. #3
    Join Date
    Nov 2011
    Location
    India
    Posts
    333

    Re: How to set the property for use the static lib file in VC2003

    I was created the static library(Named MyLib.lib) & added the new project(Calculator) from

    that solution. I was added the MyLib.h & MyLib.lib file in the Calculator project & also copied

    the particular location.

    Now, How to set the Solution's property & Project's Property( Calculator).

    I find out the Common Properties. Just I right clicked the Solution & Clicked

    properties. But its totally different from VC2010.

    Pls clear me.
    Regards,

    SaraswathiSrinath

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: How to set the property for use the static lib file in VC2003

    Quote Originally Posted by saraswathisrinath View Post
    I find out the Common Properties. Just I right clicked the Solution & Clicked

    properties. But its totally different from VC2010.

    Pls clear me.
    Yes, VC.NET2003 is different from VC2010. So forget about VC2010 and Common Properties and explain what your real problem is.

    My understanding is that you are to make some custom static library be globally accessible. This is done by Tools\Options\Projects\VC++ Directories\Library files. Then you add linker additional dependency to Project Settings.
    Attached Images Attached Images   
    Last edited by Igor Vartanov; January 16th, 2013 at 06:14 AM.
    Best regards,
    Igor

  5. #5
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: How to set the property for use the static lib file in VC2003

    In case the library is specific to a single project only, Additional Library Directories for the Project Settings could be explicitly specified instead of modifying global VC++ Directories settings.
    Attached Images Attached Images  
    Last edited by Igor Vartanov; January 16th, 2013 at 06:26 AM.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured