Find the answer to your Linux question:
Results 1 to 4 of 4
Hi Experts I am linking few satic libaray with my source code using Jamfile. When I make modification in the code for static library, and compile the main jamfile, it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2012
    Posts
    9

    problem in linking static library in Jamfil


    Hi Experts

    I am linking few satic libaray with my source code using Jamfile. When I make modification in the code for static library, and compile the main jamfile, it won't linking to the library(i.e the library whose source code had been modified) But if user do "clean and run the main Jam file again, then my changes i.e where I made changes in the code for static library will be reflecting.Why ?


    Can anybody tell me, as soon as user modify the code for static library, when user compile the main JAM file , it will link with the changed staic library ?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    You need a target for the static library, and a dependency on it in the target for the main program in your Makefile. Post the contents of the Makefile(s) here and we can show you what to do, most likely.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jan 2012
    Posts
    9
    can some body help me in it?
    Last edited by vickyCool; 01-12-2012 at 03:01 AM.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    Sorry, but I'm not familiar with Jam, so the build file doesn't compute for me. Perhaps someone else here can help?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •