litebrowser icon indicating copy to clipboard operation
litebrowser copied to clipboard

Help building with VS2016 please

Open tig opened this issue 5 years ago • 1 comments

I need to fix some issues in litehtml. My project is C#-based using litehtmlsharp and being able to build/test/debug in C++ will make the work in litehml easier (I believe).

To this end, I really want to do everything in VS2016. But I can't get litebrowser to build. It appears to be some C++ language feature issue:

4>tordexhttp.cpp
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.h(25,8): error C2039: 'wstring': is not a member of 'std'
4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.h(25,22): error C3646: 'm_url': unknown override specifier
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.h(25,22): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.cpp(165,2): error C2065: 'm_url': undeclared identifier
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.cpp(183,7): error C2039: 'wstring': is not a member of 'std'
4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.cpp(183,15): error C2065: 'wstring': undeclared identifier
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.cpp(183,15): error C2146: syntax error: missing ';' before identifier 'host'
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.cpp(183,15): error C2065: 'host': undeclared identifier
4>C:\Users\ckindel\s\litebrowser\src\tordexhttp.cpp(184,7): error C2039: 'wstring': is not a member of 'std'
....

Its been decades since I've done heavy C++ dev, so I'm pretty rusty. I'd appreciate any tips you can give me on getting past this. Thanks.

tig avatar Feb 16 '20 15:02 tig

+1, fixed by including string

versaloon avatar May 23 '22 07:05 versaloon