Dipak, Ajit wrote:
I'm attempting to use the <solution> task with a solution that has 6 C#
projects (*.csproj) and 1 Managed C++ project (*.vcproj). Note that the solution
file compiles without issue in the VS.NET 2003 IDE.
The NAnt build however, produces
[cl] c:\mybuilds\src\MyProjects\MyClass.cpp(6) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory
[cl] Generating Code...
BUILD FAILED
External Program Failed: cl (return code was 2)
Is there some setting or property I need to set in order for the cl.exe to pick
up the predefined headers?
The most likely problem is that the various VC++ environment variables
aren't set.
Take a look at the vsvars32.bat file in the Common7/Tools directory of
your VS.Net 2003 installation. That will tell you what needs to be
set. There are various ways of accomplishing this, depending upon your
needs. The simplest is just to run this script before running NAnt.
Alternatives are to put those environment variables into your personal
or system environment, or to add a section to the NAnt build script to
set them using the various environment variable functions.
Gary
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users