From: Jeff M. <jef...@pa...> - 2004-09-15 13:04:10
|
Hey Gert, I spent the whole day yesterday trying to figure out the problem -- and after recompiling Nant with my own logging inserted in several places many, many times I was able to show that Nant was not recognizing many of the options that were supposed to be present in the project file. This caused me to have a peek at the project file and low and behold the EHsc option was not specified in the file even though the IDE showed it in the project options and the build log from VSNet showed these options when it did the build. So I toggled the options in VSNet while saving the project each time. Only after I turned the Exception Handling option off, saved, turned it back on and saved, did the entry in the project file show up. It seems that VSNet2003 makes certain default assumptions regarding project settings when they are not present in the project file. Anyway, the long and short of all of this is that after I confirmed that the Exception Handling option was present in the project file and I switched to use the latest nightly Nant build (Sept 10th), everything is peachy. Thanks Jeff -----Original Message----- From: Gert Driesen [mailto:ger...@pa...] Sent: Wednesday, September 15, 2004 1:19 AM To: jef...@pa...; nan...@li... Subject: Re: [Nant-users] Solution Task and C++ Project configuration -- EHsc Jeff, Apparently NAnt is not passing the option on to the compiler. Can you provide a repro for this ? Thanks, Gert ----- Original Message ----- From: "Jeff McMahon" <je...@in...> To: <nan...@li...> Sent: Monday, September 13, 2004 11:09 PM Subject: [Nant-users] Solution Task and C++ Project configuration -- EHsc > Hi all, > > I am using the solution task to build my c++ project. I am getting the > following output when verbose="true" for the solution task. There are > 100's > of the C4530 warnings even though I have set the /EHsc option within the > IDE. Also, when I review the commandline compile settings I see that > /EHsc > is present. > > /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /EHsc /MD /GS /GR > /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP > > Anyone have ideas? Is there some kind of caching for the solution file > parsing routines? etc... > > > Thanks in advance, > > Jeff > > > > > > [solution] Fixing up references... > [solution] Building 'Money2Lib' [release] ... > [cl] 'D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\Money2Lib\Release\Money.obj' > does > not exist, rec > ompiling. > [cl] Compiling 1 files to 'D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\Money2Lib\Release'. > [cl] Contents of > C:\DOCUME~1\JEFF~1.TOO\LOCALS~1\Temp\tmp131E.tmp. > [cl] /c > [cl] /Fd"D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\Money2Lib\Release/" > [cl] /Fo"D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\Money2Lib\Release/" > [cl] ".\Money.cpp" > [cl] /D "_MBCS" > [cl] > [cl] Starting 'cl > (@"C:\DOCUME~1\JEFF~1.TOO\LOCALS~1\Temp\tmp131E.tmp" /D WIN32 /D NDEBUG /D > _LIB /W3 /MD /Zi /no > logo)' in 'D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\Money2Lib' > [cl] Money.cpp > [lib] Combining 1 files to 'D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\Money2Lib\Release\Money2Lib > .lib'. > [lib] Contents of > C:\DOCUME~1\JEFF~1.TOO\LOCALS~1\Temp\tmp131F.tmp. > [lib] /OUT:"D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\Money2Lib\Release\Money2Lib.lib" > [lib] "D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\Money2Lib\Release\Money.obj" > [lib] /nologo > [lib] > [lib] Starting 'lib > (@"C:\DOCUME~1\JEFF~1.TOO\LOCALS~1\Temp\tmp131F.tmp")' in 'D:\Unit Testing > Files\cppUnit\cppun > it-1.10.2\examples\Test\Money2Lib' > [solution] Fixing up references... > [solution] Building 'MoneyUnitTests' [release] ... > [cl] 'D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\MoneyUnitTests\Release\stdafx.obj > ' does not exis > t, recompiling. > [cl] Compiling 1 files to 'D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\MoneyUnitTests\Release'. > [cl] Contents of > C:\DOCUME~1\JEFF~1.TOO\LOCALS~1\Temp\tmp1320.tmp. > [cl] /c > [cl] /Fd"D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\MoneyUnitTests\Release/" > [cl] /Fo"D:\Unit Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\MoneyUnitTests\Release/" > [cl] ".\stdafx.cpp" > [cl] /D "_MBCS" > [cl] > [cl] Starting 'cl > (@"C:\DOCUME~1\JEFF~1.TOO\LOCALS~1\Temp\tmp1320.tmp" /D WIN32 /D NDEBUG /D > _CONSOLE /W3 /MD /Zi > /Yc"StdAfx.h" /Fp"Release/MoneyUnitTests.pch" /nologo)' in 'D:\Unit > Testing > Files\cppUnit\cppunit-1.10.2\examples\Test\MoneyUnitTes > ts' > [cl] stdafx.cpp > [cl] C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\ostream(574) : warning C4530: C++ exception h > andler used, but unwind semantics are not enabled. Specify /EHsc > [cl] C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\istream(828) : warning C4530: C++ exception h > andler used, but unwind semantics are not enabled. Specify /EHsc > [cl] C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\istream(1064) : warning C4530: C++ exception > handler used, but unwind semantics are not enabled. Specify /EHsc > [cl] C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\ostream(479) : warning C4530: C++ exception h > andler used, but unwind semantics are not enabled. Specify /EHsc > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: thawte's Crypto Challenge Vl > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > Camcorder. More prizes in the weekly Lunch Hour Challenge. > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > _______________________________________________ > Nant-users mailing list > Nan...@li... > https://lists.sourceforge.net/lists/listinfo/nant-users > > |