.lib files - What is the use??

This is a discussion on .lib files - What is the use?? within the Windows Programming forums, part of the Platform Specific Boards category; I already added .lib file into the project. And the program accepts this file. I know this for sure beacuse ...

  1. #16
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    I already added .lib file into the project. And the program accepts this file. I know this for sure beacuse if I rename the file into something that does not exists, than the linker says that this file cannot be found. So .lib file is in, but the linker still says for external error, cannot find Print function.

    DAMN!
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  2. #17
    btq
    btq is offline
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    hmmm..when you said
    This is the error message:
    "Button error LNK2019: unresolved external symbol _Print referenced in function _main"
    ,does this apply to all functions, ie, you can't use a single function
    from you lib ?

    like I said it's really hard to solve this without seeing the code.
    I suggest you take a look at your build-log and assure yourself
    that your app actually links with the correct .lib file
    (but maybe you've already done this ?).


    /btq
    ...viewlexx - julie lexx

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error opening files in a different dir
    By Ozzie in forum C++ Programming
    Replies: 3
    Last Post: 10-09-2008, 07:55 AM
  2. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 03:47 AM
  3. accessing all files in a folder.
    By pastitprogram in forum C++ Programming
    Replies: 15
    Last Post: 04-30-2008, 11:56 AM
  4. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 09:44 AM
  5. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21