I am working with c++ builder 6.0. I tried to use cpptask for my project but I got next error messages.
 
[cc] 1 total files to be compiled.
[cc] Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
[cc] D:\src\test.cpp:
[cc] Starting link
[cc] Turbo Incremental Link 5.60 Copyright (c) 1997-2002 Borland
[cc] Fatal: Illegal option: fotest.exe
 
It seems that Incorrect option is sent to the linker. I do not set any options for linker. So I guess that cpptask set incorrect linker option. Next is part of my build file.
 
<compiler id="bcc" name="bcc"/>
<linker id="bcc.linker.windows" name="bcc"/>
 
<target name="test" depends="prepare">
  <cc debug="true" link="executable" objdir="${build.obj.dir}" outfile="${build.executable.dir}/test.exe" multithreaded="true" exceptions="true">
   <compiler refid="bcc" if="use.bcc"/>
   <linker refid="bcc.linker if="use.bcc"/>
   <defineset>
    <define name="DEBUG"/>
   </defineset>
   <fileset dir="${src.dir}" includes="test.cpp"/>
   <includepath refid="includepath"/>
   <syslibset libs="stdc++, wsock32, winspool, winmm, shell32, comctl32, ctl3d32, advapi32, odbc32, opengl32, glu32, ole32, oleaut32, uuid"/>
  </cc>
</target>