Hi,

i've added several additional include directories to a vs.net c++ project, which
I build using the solution task in verbose mode (using latest nant nightly build):

-------------- nant output ------------------
 [solution] Building 'MessageTCP' [debug]...
       [cl] 'c:\working\MyLocalCopy\nMMA\MessageTCP\Debug\Connection.obj' does
not exist, recompiling.
       [cl] Compiling 1 files to 'c:\working\MyLocalCopy\nMMA\MessageTCP\Debug'.
       [cl] Contents of C:\TEMP\tmp28E.tmp.
/c

/clr
/I "X:\Solaris2.8\MessageTCP\src;H:\Libs\include"
/Fd"c:\working\MyLocalCopy\nMMA\MessageTCP\Debug/"
/Fo"c:\working\MyLocalCopy\nMMA\MessageTCP\Debug/"
".\Connection.c"
/D "_MBCS"

       [cl] Starting 'cl (@"C:\TEMP\tmp28E.tmp" /D WIN32 /D _DEBUG /D _LIB /W3
/MTd /Zi /TP /Od /nologo)' in 'c:\working
\MyLocalCopy\nMMA\MessageTCP'
            Connection.c
            c:\Working\MyLocalCopy\nMMA\MessageTCP\MessageTCP\Connection.h(6) :
fatal error C1083: Cannot open include file: 'Objs/Socket.h': No such file or
directory
---------------------------------



browsing the doc of cl.exe, it found out that :



-------------- /I cl.exe documentation ------------
/I[ ]directory
where: 
directory 
The directory to be added to the list of directories searched for include files. 

Remarks:
This option adds a directory to the list of directories searched for include
files. To add more than one directory, use this option more than once.
Directories are searched only until the specified include file is found.
----------------------------------------------------


it seems that cl.exe requires one additional /I "folder" per additional folder, 
instead of what we have now :
/I "X:\Solaris2.8\MessageTCP\src;H:\Libs\include"

it tried creating my own temp file and replacing it by 
/I "X:\Solaris2.8\MessageTCP\src"
/I "H:\Libs\include"

and it seems to work;

note : /LIBPATH for additional library directories should not suffer from this,
as it accepts semi-colon delimiter.

Does anyone have met this before ? Is it a known issue or is there a work around
(or am I totally wrong here) ?

I can contribute if there's work to do.


Regards

Thibaut Barrère


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to