CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Posts
    17

    how to add .lib files to projects

    this may seem like a dumb question but how to you include .lib files with your project...
    i thought you just add them like a header files or .cpp file but my project keeps having errors

    if i am adding them properly please tell me

    if not... please tell me the right way to include them with the project

  2. #2
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: how to add .lib files to projects

    By using a pragma:

    Code:
    #pragma comment(lib, "path to lib.lib")
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

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