lib files

This is a discussion on lib files within the Game Programming forums, part of the General Programming Boards category; Does anyone know how to make *.lib files (if even possible)? I think you do it by making a DLL ...

  1. #1
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644

    lib files

    Does anyone know how to make *.lib files (if even possible)? I think you do it by making a DLL file, but I ain't sure.

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    they are sometimes produced with dlll files if you want one.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Take it you mean DLL.......and I kinda do, but I mainly wanna know how to make one incase I need to for some reason

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    133
    what compiler/environment

  5. #5
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    BloodeShed Dev-C++ 4.01

  6. #6
    Registered User
    Join Date
    Apr 2002
    Posts
    133
    hmmm I donno
    flashdaddee.com rocks!!!

  7. #7
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    well when you selecting a project type or setting the compile/link options there should be something to the effect of DLL or Dynamic Link Library thats what you want!

    as for impleentation... heres an ancient post that explains.

    http://www.cprogramming.com/cboard/s...ighlight=dll.h
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  8. #8
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Lightbulb Like this

    I use Dev-C++ 4.01. Click File->New Project and select DLL. Then, put in the information in the dialog box that comes up. When you put in your own code. Click Project->Project Options. Be sure that:

    Create A DLL

    is checked. That should do it!
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  9. #9
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Thanks.....I'll try that.
    [EDIT]I got the *.dll file to compile after a little bit of getting it to work correctly, now comes the thing. I ain't got the *.lib file. I got the *.def. Or is the *.def file the *.lib file[/EDIT]
    Last edited by Quantrizi; 05-07-2002 at 07:29 PM.

  10. #10
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    a .lib file is basically a .o file which is created before you get the .exe. there should be options to compile to a .o and not a .exe somewhere. when you compile this, you shouldnt have a main.

  11. #11
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    No, I got the *.def file only. I checked the Compile as DLL box, and it will compile, but there is no nothing. Unless I set up the thing wrong, I'll retry it.

  12. #12
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    good..

    Since you brought the subject up, i was always curious about making .lib files with a borland compiler. Anyone know?

    Thanks



    Discover the XBlue:
    http://www.angelfire.com/my/bahairomania/freegui.html

  13. #13
    Unregistered
    Guest
    I dunno if it's really possible. When I get home (i'm at school) I can give you a link to site about this

  14. #14
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Lightbulb This is why

    Dev-C++ uses .a files instead of .lib, but they are the same.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  15. #15
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Ok, thanks Syntax

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 10:52 PM
  2. Error opening files in a different dir
    By Ozzie in forum C++ Programming
    Replies: 3
    Last Post: 10-09-2008, 07:55 AM
  3. Working with muliple source files
    By Swarvy in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2008, 09:36 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