Menu

cpptasks

Help
hbradau
2005-10-20
2013-04-24
  • hbradau

    hbradau - 2005-10-20

    How can I pass an OBJ file in the library set?
    I need to pass an OBJ file in the <libset libs="..."> tag/attribute among LIB files, but it seems like the tag only selects LIB files (Windows platform).
    I need to link an executable against file1.obj, file2.lib, file3.lib, filen.lib.

    Is this do-able?

    Thanks,
    hbradau

     
    • Mathieu Champlon

      Hello,

      Maybe a simple <linkerarg value="file1.obj"/> will do the trick ?

       
    • Curt Arnold

      Curt Arnold - 2005-10-24

      You include an object file into the link in the same manner as you include a source file for compilation.  The task will attempt to detect the type of the file and route it to the appropriate compiler or linker.  So you could do something like:

      <cc...>
          <fileset dir="${src.dir}" includes="*.cpp file1.obj"/>
      </cc>

       

Log in to post a comment.