This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to make lib files for most common used files

Hi all
how can i go about for following :
code of files cannot be read when opened but it should work
when included in project.
can i make lib files for individual files included in the project ?
if yes,then how ?
because keil has option for making lib files for whole project.
(in menu bar --> options)
regards
Arjun

Parents
  • Hello,
    of course you can create your own LIB. Assumed that all your files has been compiled the following .BAT-file grabs all .OBJ-files and stores them in the file C_LIB.LIB.
    You can then link it to your project.

    ------ 8< -----
    @echo off
    if not exist C_LIB.lib GOTO Weiter
    del C_LIB.lib

    :Weiter
    C:\C51V4\BIN\LIB51 CREATE C_LIB.lib

    for %%n IN (*.obj) DO C:\C51V4\BIN\LIB51 add %%n to C_LIB.lib
    ------ >8 -----

    HTH, Walter Ochs

Reply
  • Hello,
    of course you can create your own LIB. Assumed that all your files has been compiled the following .BAT-file grabs all .OBJ-files and stores them in the file C_LIB.LIB.
    You can then link it to your project.

    ------ 8< -----
    @echo off
    if not exist C_LIB.lib GOTO Weiter
    del C_LIB.lib

    :Weiter
    C:\C51V4\BIN\LIB51 CREATE C_LIB.lib

    for %%n IN (*.obj) DO C:\C51V4\BIN\LIB51 add %%n to C_LIB.lib
    ------ >8 -----

    HTH, Walter Ochs

Children
No data