I'm having trouble using the solution task to compile my Visual Studio.NET 2003 C++ project. It's basically not linking to the standard windows dlls, even though it compiles fine within Visual Studio. I was under the impression that it should just use whatever dependencies are specified in the vcproj file, but apparently that's not the case? Sorry for the neophyte question, but any help would be very greatly appreciated.

I'm getting the following error:

[cl] Starting 'cl (@"c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpC6.tmp" /EHsc /Gm /W3 /MLd /Wp64 /RTC1 /ZI /O
d /nologo)' in 'c:\bamboo\client\launcher\win\trunk\src\ShootLauncher'
[cl] ShootLauncher.cpp
[cl] c:\bamboo\client\launcher\win\trunk\src\ShootLauncher\ShootLauncher.cpp(12) : fatal error C1083: Ca
nnot open include file: 'windows.h': No such file or directory



And I'm using the following in my build file:

<path id="build.path.include">
<pathelement dir="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\INCLUDE" />
<pathelement dir="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\INCLUDE" />
<pathelement dir="C:\j2sdk1.4.2_04\include\" />
<pathelement dir="C:\j2sdk1.4.2_04\include\win32" />
</path>


<path id="build.path.lib">
<pathelement dir="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB" />
<pathelement dir="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB" />
</path>


<path id="build.path">
<pathelement dir="C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE" />
<pathelement dir="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN" />
</path>


<setenv>
    <variable name="INCLUDE">
        <path refid="build.path.include" />
    </variable>

    <variable name="LIB">
        <path refid="build.path.lib" />
    </variable>

    <variable name="PATH">
        <path refid="build.path" />
    </variable>
</setenv>

 <target name="debug">
   <solution
     solutionfile="ShootLauncher.sln"
     configuration="Debug"
     includevsfolders="true"
     verbose="true"
   />
 </target>

-Adam


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to