> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > John Debay > Sent: woensdag 18 mei 2005 2:48 > To: nant-users@lists.sourceforge.net > Subject: [Nant-users] D2036 or C1083, depending on your point > of view (C++) > > Hi, > > If you specify an Intermediate Directory in a C++ project > (right-click > the project, click Properties, click General), you seem to run into > trouble. In my real project, I received this error when specifying an > intermediate directory with a trailing slash (e.g. > $(ProjectDir)..\..\build\debug\obj\): > > [cl] cl : Command line error D2036 : > '/Foc:\myproject\build\debug\obj\"' > not allowed with multiple source files > > Now, this seems to be caused because this is inserted into the cl.exe > command line: > > /Fo"c:\work\whatever\src\project\..\..\build\debug\obj\/" > > (The "whatever" directory is the root of my project. "src" > contains the > source code, and all build artifacts are placed in "build".) > > It seems that the "\/" at the end confuses it. If I remove > the trailing > slash from the intermediate directory (e.g. change it to read > $(ProjectDir)..\..\build\debug\obj), all is well. It creates > this cl.exe > switch: > > /Fo"c:\work\whatever\src\project\..\..\build\debug\obj/" > > I tried to reproduce this, but got a different error: > > [cl] fatal error C1083: Cannot open compiler generated file: > 'c:\test\mysolution\myproject\Debug\obj\".obj': Invalid argument > > Either way, it works in VS.NET 2003 so it seems like it > should work in NAnt. > > This seems to only happen in rc3. Until tonight, I had been running a > nightly build from 9/20/2004, and did not have this problem. > > I would be happy to send along the reproduction if interested.
Great, send it to me and I'll look into it asap. Gert ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users