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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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
Hello,
Maybe a simple <linkerarg value="file1.obj"/> will do the trick ?
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>