Thread: .lib files - What is the use??

  1. #16
    Code Warrior
    Join Date
    Nov 2001
    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.

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

  2. #17
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    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 ?).

    ...viewlexx - julie lexx

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, 06:55 AM
  2. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 02:47 AM
  3. accessing all files in a folder.
    By pastitprogram in forum C++ Programming
    Replies: 15
    Last Post: 04-30-2008, 10:56 AM
  4. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  5. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM