Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Jesse Stockall <jesse@cr...> - 2002-04-23 17:29:49
|
I'm trying to get the current CC task working. I have been using an older version for a while now, but now that I've switched to current CVS something isn't working. I get a NoSuchMethodException in CaptureStreamHandler it appears to be tying to use GCC not MSVC. I'm using current ant CVS as well. <target name="lib" depends="init"> <cc link="shared" objdir="${objs}" outfile="${build}/lib/${os.name}/${ant.project.name}" > <compiler name="msvc"/> <compilerarg value="/O2"/> <compilerarg value="/Ob1"/> <compilerarg value="/GF"/> <compilerarg value="/FD"/> <compilerarg value="/EHsc"/> <compilerarg value="/MT"/> <compilerarg value="/Gy"/> <compilerarg value="/YX"stdafx.h""/> <compilerarg value="/W3"/> <compilerarg value="/nologo"/> <compilerarg value="/c"/> <compilerarg value="/TP"/> <linkerarg value="/subsystem:windows"/> <!-- File to compile --> <fileset dir="."> <include name="*.cpp"/> </fileset> <defineset refid="defs"/> <libset dir="${vs.dir}/PlatformSDK/lib" libs="odbc32, odbccp32, kernel32, user32, gdi32, winspool, comdlg32, advapi32, shell32, ole32, oleaut32, uuid, odbc32, odbccp32"/> <!-- Includes --> <includepath location="${jdk}/include"/> <includepath location="${jdk}/include/win32"/> <includepath location="${objs}"/> <includepath location="${vs.dir}/PlatformSDK/Include"/> <includepath location="${vs.dir}/include"/> </cc> </target> java.lang.NoSuchMethodError at net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler.run(CaptureStreamHandler.java:91) at net.sf.antcontrib.cpptasks.gcc.GccProcessor.getMachine(GccProcessor.java:115) at net.sf.antcontrib.cpptasks.gcc.GccLinker.getLibraryPath(GccLinker.java:118) at net.sf.antcontrib.cpptasks.LinkerDef.visitUserLibraries(LinkerDef.java:370) at net.sf.antcontrib.cpptasks.CCTask.collectExplicitObjectFiles(CCTask.java:620) at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:418) at org.apache.tools.ant.Task.perform(Task.java:313) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1216) at org.apache.tools.ant.Project.executeTargets(Project.java:1160) at org.apache.tools.ant.Main.runBuild(Main.java:605) at org.apache.tools.ant.Main.start(Main.java:195) at org.apache.tools.ant.Main.main(Main.java:234) Thanks -- Jesse Stockall | Tel: 1+ 613.599.2441 ext. 243 CRYPTOCard Corporation | Fax: 1+ 613.599.2442 Suite 304, 300 March Rd. | email: jesse@... Ottawa, ON, Canada K2K 2E2 | web: http://www.cryptocard.com --------------------------------------------------------------------- |