On 23/06/2021 15:07, John Emmas via Boost-users wrote:
Hi there - I'm using boost ver 1.71 and I'm seeing a strange problem with VS2019. Simply #including this line at the top of a source file will generate a compiler error if I try to build in Debug mode (Release builds are okay...)

      #include <boost/property_tree/json_parser.hpp>

When I say a "compiler error" I'm not referring to one of the usual CXXXX messages - what happens is this:-

>INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\CL.exe'
>    Please choose the Technical Support command on the Visual C++
>    Help menu, or open the Technical Support help file for more information
>Done building project "ardour.vcxproj" -- FAILED.
>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Just wondering if anyone else has encountered this..?

Thanks, John


I just tried using 1.76 using a simple c++ file and didn't have any problems.

#include <boost/property_tree/json_parser.hpp>
#include <iostream>

using namespace std;

int main()
{
    cout << "Testing Boost include file" << endl;

    return EXIT_SUCCESS;
}

I used the cmd line using this:

cl /EHsc /I D:\Tmp\Boost\boost_1_76_0 boost.cpp /link /LIBPATH:D:\Tmp\Boost\boost_1_76_0\stage\lib

My boost libraries are in D:\tmp\boost

Are you compiling in command line or are you using the IDE?

My VS2019 is at version:

Visual Studio 2019 Developer Command Prompt v16.9.6

Hope this helps.


--

With over 1.3 billion devices now running Windows 10, customer satisfaction is higher than any previous version of windows.


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users

Reply via email to