Aquileo | Recent changes to 227: Ant 1.5 style tasks not workinghttps://sourceforge.net/p/ant-contrib/bugs/227/2008-10-20T22:33:01ZRecent changes to 227: Ant 1.5 style tasks not workingAquileo | Ant 1.5 style tasks not working2008-10-20T22:33:01Z2008-10-20T22:33:01ZAnonymoushttps://sourceforge.net/u/userid-None/https://sourceforge.netb98805a1ae8df3b3b1a47345098783ffa16fe282<div class="markdown_content"><p>I created a build.xml script with the "cc" task and everything worked. I could add a "linker" task as long as it was nested inside of my "cc" task. When I moved it to the project level and ref.ed it by id... I would get a "Problem: failed to create task or type linker" error. The same happened when I tried to ref. a "compiler" task from the project level.</p>
<p>To fix it, I had to use the 1.6 style and prefix my taks with "cpptask:". I also had to add xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks" to my project instead of using taskdef.</p>
<p>If this is depricated it would be nice to know.</p></div>