Boost C++ Libraries: Ticket #3602: created pch.cpp file is missing a terminating newline. https://svn.boost.org/trac10/ticket/3602 <p> In Boost.math testing </p> <p> cpp-pch pch : pch.hpp : &lt;use&gt;../../test/build<em>boost_test_exec_monitor ; </em></p> <p> writes a file pch.pch.cpp that is missing a terminating newline. "fatal error C1004: unexpected end-of-file found" </p> <p> #include "pch.hpp" </p> <hr /> <p> This is required in strict C++ compliance mode /Za. </p> <p> compile-c-c++-pch ..\..\..\bin.v2\libs\math\test\msvc-9.0\debug\asynch-exceptions-on\threading-multi\pch.pch pch.pch.cpp ..\..\..\bin.v2\libs\math\test\msvc-9.0\debug\asynch-exceptions-on\threading-multi\pch.pch.cpp(1) : fatal error C1004: unexpected end-of-file found </p> <blockquote> <p> call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 &gt;nul </p> </blockquote> <p> cl /Zm800 -nologo @"..\..\..\bin.v2\libs\math\test\msvc-9.0\debug\asynch-exceptions-on\threading-multi\pch.pch.rsp" "..\..\..\bin.v2\libs\math\test\msvc-9.0\debug\asynch-exceptions-on\threading-multi\pch.pch.cpp" </p> <p> ...failed compile-c-c++-pch ..\..\..\bin.v2\libs\math\test\msvc-9.0\debug\asynch-exceptions-on\threading-multi\pch.pch ..\..\..\bin.v2\libs\math\test\msvc-9.0\debug\asynch-exceptions-on\threading-multi\pch.obj... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3602 Trac 1.4.3 Vladimir Prus Mon, 09 Nov 2009 18:15:22 GMT attachment set https://svn.boost.org/trac10/ticket/3602 https://svn.boost.org/trac10/ticket/3602 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">msvc.diff</span> </li> </ul> Ticket Vladimir Prus Mon, 09 Nov 2009 18:16:23 GMT <link>https://svn.boost.org/trac10/ticket/3602#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3602#comment:1</guid> <description> <p> Paul, does the attached patch help? Please note you need current Boost.Jam -- you can get that by running 'bootstrap.bat' in the root of boost source tree. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Mon, 09 Nov 2009 18:16:38 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/3602#comment:2 https://svn.boost.org/trac10/ticket/3602#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket anonymous Tue, 10 Nov 2009 12:04:46 GMT <link>https://svn.boost.org/trac10/ticket/3602#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3602#comment:3</guid> <description> <p> Sadly not quite </p> <p> pch.pch.cpp ..\..\..\bin.v2\libs\math\test\msvc-9.0\debug\asynch-exceptions-on\threading-multi\pch.pch.cpp(1) : warning C4067: unexpected tokens following preprocessor directive - expected a newline ..\..\..\bin.v2\libs\math\test\msvc-9.0\debug\asynch-exceptions-on\threading-multi\pch.pch.cpp(1) : fatal error C1004: unexpected end-of-file found </p> <p> pch.pch.cpp contains: </p> <p> #include "pch.hpp"\n </p> <p> So isn't translating the \n into a newline :-( </p> <p> (using bjam 3.1.17 I believe </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Fri, 27 Nov 2009 06:43:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3602#comment:4 https://svn.boost.org/trac10/ticket/3602#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57965" title="When generating PCH-compiling cpp, end it with newline. Fixes #3602. ">[57965]</a>) When generating PCH-compiling cpp, end it with newline. </p> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3602" title="#3602: Bugs: created pch.cpp file is missing a terminating newline. (closed: fixed)">#3602</a>. </p> Ticket Paul A. Bristow Fri, 27 Nov 2009 16:17:29 GMT <link>https://svn.boost.org/trac10/ticket/3602#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3602#comment:5</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/3602#comment:4" title="Comment 4">vladimir_prus</a>: </p> <blockquote class="citation"> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57965" title="When generating PCH-compiling cpp, end it with newline. Fixes #3602. ">[57965]</a>) When generating PCH-compiling cpp, end it with newline. </p> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3602" title="#3602: Bugs: created pch.cpp file is missing a terminating newline. (closed: fixed)">#3602</a>. </p> </blockquote> <p> Confirms Works OK for me with jamfile including requirements </p> <blockquote> <p> &lt;toolset&gt;msvc:&lt;cxxflags&gt;/Za # disable MS Extensions in Boost.Test </p> </blockquote> <p> cpp-pch pch : pch.hpp : &lt;use&gt;../../test/build<em>boost_test_exec_monitor ; </em></p> <p> that failed before. </p> <p> Thanks. </p> </description> <category>Ticket</category> </item> </channel> </rss>