Static library build and inclusion - VxWorks

This is a discussion on Static library build and inclusion - VxWorks ; Hi all I have a set of header and source files that wrap and "objectify" some rudimentary OS ressources like threads, semaphores etc. Can anyone explain (or point me to info about) ... (1) How to build a statically linked ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Static library build and inclusion

  1. Static library build and inclusion

    Hi all

    I have a set of header and source files that wrap and "objectify" some
    rudimentary OS ressources like threads, semaphores etc.

    Can anyone explain (or point me to info about) ...

    (1) How to build a statically linked library from these files
    (2) How to include the library in a DKM project?

    Thanks,
    Troels Jensen


  2. Re: Static library build and inclusion

    Hi:

    What is a DKM project?

    lc
    Troels Jensen wrote:
    > Hi all
    >
    > I have a set of header and source files that wrap and "objectify" some
    > rudimentary OS ressources like threads, semaphores etc.
    >
    > Can anyone explain (or point me to info about) ...
    >
    > (1) How to build a statically linked library from these files
    > (2) How to include the library in a DKM project?
    >
    > Thanks,
    > Troels Jensen



  3. Re: Static library build and inclusion

    Hi Larry (and all)

    Sorry, that's me with the head in the documentation. A DKM project is a
    Downloadable Kernel Module Project as constructed from within the
    Workbench. In my case, it is the application project.

    /Troels

    LarryC wrote:
    > Hi:
    >
    > What is a DKM project?
    >
    > lc
    > Troels Jensen wrote:
    > > Hi all
    > >
    > > I have a set of header and source files that wrap and "objectify" some
    > > rudimentary OS ressources like threads, semaphores etc.
    > >
    > > Can anyone explain (or point me to info about) ...
    > >
    > > (1) How to build a statically linked library from these files
    > > (2) How to include the library in a DKM project?
    > >
    > > Thanks,
    > > Troels Jensen



  4. Re: Static library build and inclusion

    Troels Jensen wrote:
    > Hi all
    >
    > I have a set of header and source files that wrap and "objectify" some
    > rudimentary OS ressources like threads, semaphores etc.
    >
    > Can anyone explain (or point me to info about) ...
    >
    > (1) How to build a statically linked library from these files


    The library-building tool is GNU ar, documented here:
    http://www.gnu.org/software/binutils...inutils_1.html

    > (2) How to include the library in a DKM project?

    You might try ADDED_MODULES=path-to-my-library.

    >
    > Thanks,
    > Troels Jensen
    >


  5. Re: Static library build and inclusion

    the trick is to make a new project type (by default the kernel is the
    'vxworks' project type for example) which overrides linking and instead
    uses the AR utility to make the archive. Then you put your files in such
    a project and hit the build button.

    To include the lib in another project, go to the macros tab and modify the
    LIB macro.

    David

    Troels Jensen wrote:

    > Hi all
    >
    > I have a set of header and source files that wrap and "objectify" some
    > rudimentary OS ressources like threads, semaphores etc.
    >
    > Can anyone explain (or point me to info about) ...
    >
    > (1) How to build a statically linked library from these files
    > (2) How to include the library in a DKM project?
    >
    > Thanks,
    > Troels Jensen



+ Reply to Thread