On Scintilla

76 views
Skip to first unread message

abdan

unread,
Feb 6, 2020, 3:36:44 AM2/6/20
to scite-interest
I tried to build Scintilla.dll 64bit as notepad++ dependency, and obey the instruction on https://github.com/notepad-plus-plus/notepad-plus-plus ,
And used Visual Studio 2015 but as I came to 5th step to build it with boost regex and got into the notepad-plus-plus-master\scintilla\win32 dir. to do

D:\MSYS\usr\src\notepad-plus-plus-master\scintilla\win32>
nmake BOOSTPATH
=D:\MSYS\usr\src\boost_1_70_0\ BOOSTREGEXLIBPATH=x:\T\boostregexLib\x64\ -f scintilla.mak


What it gave is this

Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
Copyright (C) Microsoft Corporation.  All rights reserved.


        cl
-Zi -TP -MP -W4 -EHsc -std:c++17 -D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_SCL_SECURE_NO_WARNINGS=1  -O1 -MT -DNDEBUG -GL -I../include -I../src -I../lexlib -ID:\MSYS\usr\src\boost_1_70_0\ -DSCI_OWNREGEX -D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS -c ../boostregex/BoostRegexSearch.cxx
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.


cl
: Command line warning D9002 : ignoring unknown option '-std:c++17'
BoostRegexSearch.cxx
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(339): error C2039: 'string_view': is not a member of 'std'
D
:\APP\VS2015\VC\INCLUDE\vector(17): note: see declaration of 'std'
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(339): error C3646: 'Text': unknown override specifier
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(339): error C2059: syntax error: ')'
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(339): error C2238: unexpected token(s) preceding ';'
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(401): error C2039: 'unique_ptr': is not a member of 'std'
D
:\APP\VS2015\VC\INCLUDE\vector(17): note: see declaration of 'std'
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(401): error C2143: syntax error: missing ';' before '<'
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(401): error C2433: 'Scintilla::Surface::unique_ptr': 'virtual' not permitted on data declarations
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(401): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D
:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(401): error C2238: unexpected token(s) preceding ';'



What actually caused build failure here?
How to solve it? Thanks much.












Neil Hodgson

unread,
Feb 6, 2020, 3:46:17 AM2/6/20
to scite-interest
abdan:

> I tried to build Scintilla.dll 64bit as notepad++ dependency,

This is the mailing list for SciTE, not Scintilla and for this problem you probably want the Notepad++ forum.

> and obey the instruction on https://github.com/notepad-plus-plus/notepad-plus-plus ,
> And used Visual Studio 2015

Current Scintilla 4.x requires a C++17 compiler and standard library. Visual C++ 2015 is too old.

There is a LongTerm3 branch of Scintilla which may work with MSVC 2015 available from https://scintilla.sourceforge.io/LongTermDownload.html

> cl : Command line warning D9002 : ignoring unknown option '-std:c++17'

C++17 required.

> BoostRegexSearch.cxx
> D:\MSYS\usr\src\notepad-plus-plus-master\scintilla\include\Platform.h(339): error C2039: 'string_view': is not a member of 'std'

std::string_view from C++17 required.

Neil

abdan

unread,
Feb 6, 2020, 4:26:25 AM2/6/20
to scite-interest
THANKS A LOT.. GOD blesses you.
Reply all
Reply to author
Forward
0 new messages