I had to add a bunch of paths to my INCLUDE and LIBS environment variables
to get it working.  I had trouble getting the path passed correctly into
nant.  I ended up with something like this:
        <setenv>         
                <variable name="LIB">
                <path>
                        <pathelement path="%LIB%" />
                        <pathelement dir="../Lib" />
                        <pathelement dir="Lib" />
                        <pathelement dir="../../OpenSource/Lib/Client" />
                        <pathelement dir="../../OpenSource/Lib" />
                </path>
                </variable>
        </setenv>  

I also had to adjust the path with some relative paths for project libraries
because for some reason those were not working.  So I added them like above
in the Nant config.  I think there is an issue with relative paths used in a
project.

The last issue I found is that a library included in the "Additional
dependancies" of a library project is not inheirented for a project that
uses the project library.  (Instead, I had to add them as "additional
dependancies" to any project that used the project library.)

Not sure if that info will help you much, but you never know...

Ray
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Fisk
Sent: Tuesday, March 29, 2005 5:44 PM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] solution task easy one?

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



-------------------------------------------------------
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