mikelee Posted October 14, 2004 Posted October 14, 2004 I am new to nant and I am trying to build a simple HelloWorld C++ program. When I build my file, I'm getting this error: ********************************************************** C:\nant\examples\HelloWorld>nant NAnt 0.85 (Build 0.85.1740.0; net-1.0.win32; nightly; 10/6/2004) Copyright © 2001-2004 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/nant/examples/HelloWorld/default.build Target(s) specified: run build: [cl] Compiling 1 files to 'C:\nant\examples\HelloWorld\build'. BUILD FAILED C:\nant\examples\HelloWorld\default.build(31,10): 'cl' failed to start. The system cannot find the file specified Total time: 0.5 seconds. ********************************************************** The build script looks like this: <cl outputdir="build" options="/clr"> <sources> <include name="HelloWorld.cpp" /> </sources> </cl> The c# script works fine: <csc target="exe" output="${basename}-cs.exe" debug="${debug}"> <sources> <include name="${basename}.cs"/> </sources> </csc> Would anyone have any idea to why I might be getting this error. I couldnt find much help online for nant and c++ help. Any kind of hints or guidelines would be greatly appreciated! Quote
mocella Posted October 14, 2004 Posted October 14, 2004 The file you're looking for is either at C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin or C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin You'll have to update your Nant.exe.config to know where to look, etc. Quote
mikelee Posted October 14, 2004 Author Posted October 14, 2004 Which file do you mean? According to the task help manual provided by NANT says that the task <cl> requires Nant.VisualCppTasks which is located in c:\nant\bin\. The helloworld.cpp is located in c:\nant\e xamples\helloworld folder as well as the bulid script. I just not sure if the script is correct and why this build is failing. :mad: Quote
mocella Posted October 14, 2004 Posted October 14, 2004 Do you have VS2002 installed on your machine? Not sure if it matters, but it looks like the CL-Task expects CL.exe version is the one from VS2002, not VS2003. From the Nant Site: This task is intended for version 13.00.9466 of cl.exe. The versions of CL.exe are VS2002: 13.00.9466.0 VS2003: 13.10.3077.0 This link may help: http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg04916.html Beyond this, I'm pretty unsure of how to tell you to proceed. Sorry Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.