Hi,

I have discovered more or less what seems to be the problem.
The problem is related to the <cl> task called by the <solution> task.

The problem is that I have the files like this:
engine
--------- game
--------------- version.h
--------------- version.cpp
---------- platform
--------------- platform.h

In the version.cpp file I have the following line:
#include "platform/platform.h"

The compiler states that it can't find the platform.h file
because it's looking in game/platorm
where it should be looking in engine/platform.

How can I solve this?
I have more than a thousand files and cannot change every path reference.

Can anyone help me out?
Is there anyway to sort the path references problem?

This is my .build file:
-------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<project name="Ares" default="run" basedir=".">
<echo message="Using '${framework::get-target-framework()}' framework on '${platform::get-name()}' platform." />
<target name="run" depends="compile">
</target>
<target name="document">
<exec program="doxygen.exe"
basedir="C:\Program Files\doxygen\bin\"
commandline="C:\Projects\Ares\doc\doxygen\html\doxygen.html.cfg"
workingdir="C:\Projects\Ares"/>
</target>
<target name="compile">
<solution configuration="debug" solutionfile="TorqueShaderEngine.sln">
</solution>
</target>
<echo message="nant.project.basedir at [${nant.project.basedir}]" />
</project>
-------------------------------------------------------------------------------------------------
I have also tried variations with the basedir attribute and working directory in ccnet.config.


Can anyone help?

Thanks in advance,
Hugo


At 00:18 30-11-2004, you wrote:
Hi,

I have a big project to compile.
Its structure is more or less like this [and I cannot change it]:

projectX
----------- engine
----------------- math
----------------- platform
----------------- etc...
----------- exporter
----------- vc6
----------- vc7
----------- etc...

I have created a .build file in vc7 dir.
I have stated that basedir is "."
I have a <solution> task in which I point the .sln file in the vc7 dir.
I get an error from the cl.exe compiler stating that it can't find the
file platform.h in the dir "engine\platform"
[and it is there and it has permissions for read and write].

I have Visual Studio .NET 2003 and Framework .NET 1.1 instaled.
The ideia was to have Cruise Control .NET calling the NAnt file
whenever a build was necessary.

Can you please help me?
How should I state the XML nodes in order for the paths to work?

Thanks in advance,
Hugo



-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to