Thread: inserting a library in Microsoft Visual C++

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    39

    inserting a library in Microsoft Visual C++

    How is it possible to insert a .lib file in Microsoft Visual C++? Thanks in advance.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Oh goody, a "shooting fish in a barrel" question.
    visual studio add lib - Google Search
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    39
    Quote Originally Posted by Salem View Post
    Oh goody, a "shooting fish in a barrel" question.
    visual studio add lib - Google Search
    Well, I followed the steps, but I got the error "PDB 'vc90.pdb' was not found with 'BFLib.lib(BF.obj)' or at 'C:\Users\USER\documents\visual studio 2010\Projects\database\Debug\vc90.pdb'; linking object as if no debug info"

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    So why wasn't that information in your first post?

    Are you sure you don't have an executable file?

    PDB files AFAIK only affect your ability to debug code. If the PDB files for the library are missing, it's usually not a problem unless you really suspect a bug in the library. Even then. PDB files are not that useful without the source code.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Aug 2009
    Posts
    39
    As a matter of fact, an executable file is generated in the Debug folder, which shows up an error window when I double-click it.
    What do you suggest? Compile it as release? I changed the configuration from Project-> Properties, but still the same.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Compile for release, test it, see if it works.

    Like I said, the lack of PDB files for the library shouldn't prevent you from debugging YOUR code.
    The debugger might complain that it can't find them, but it shouldn't actually prevent you from doing some debugging.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Aug 2009
    Posts
    39
    Quote Originally Posted by Salem View Post
    Compile for release, test it, see if it works.

    Like I said, the lack of PDB files for the library shouldn't prevent you from debugging YOUR code.
    The debugger might complain that it can't find them, but it shouldn't actually prevent you from doing some debugging.
    How do you compile for release? From Project-> Properties, as I have already done? Why, then, do I get the exact same error?

  8. #8
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by vril View Post
    How do you compile for release? From Project-> Properties, as I have already done? Why, then, do I get the exact same error?
    It is not an error. It's just telling you the library has associated debug information in a file vc90.pdb, which isn't present. Whoever built the LIBRARY needs to recompile the LIBRARY with no debug information for this message to go away. Seriously, ignore the stupid message.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Microsoft Visual C++ 6.0 Help
    By hern in forum C Programming
    Replies: 3
    Last Post: 06-23-2003, 05:45 PM
  2. Replies: 1
    Last Post: 04-20-2002, 06:49 AM
  3. Microsoft Visual C++
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 03-07-2002, 12:03 PM
  4. Vga, Microsoft Visual C++
    By knave in forum C++ Programming
    Replies: 2
    Last Post: 09-14-2001, 01:41 AM