Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » MSC2019 compilation (Problem with ranges in vc2019)
MSC2019 compilation [message #55894] Sun, 27 December 2020 21:51
kov_serg is currently offline  kov_serg
Messages: 37
Registered: August 2008
Location: Russia
Member
Windows, fresh install of U++15622

Try to compile with CLANG - works
Try to compile with MSVC2017 - works
Try to compile with MSVC2019 - fail to build
What am I doing wrong?
----- CtrlLib ( GUI MSC19 MSC WIN32 ) (1 / 11)
LineEdit.cpp
C:\apps\dev\upp\uppsrc\Core\Sort.h(274): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'Upp::IndexSortIterator__<I,I2,VT>'
C:\apps\dev\upp\uppsrc\Core\Sort.h(274): note: The target type has no constructors
C:\apps\dev\upp\uppsrc\CtrlLib\LineEdit.cpp(242): note: see reference to function template instantiation 'void Upp::IndexSort<Upp::Vector<Upp::WString>&,Upp::Vector<Upp::WString>&,bool(const Upp::WString &,const Upp::WString 
    &)>(MasterRange,Range2,Less (__cdecl &))' being compiled
        with
        [
            MasterRange=Upp::Vector<Upp::WString> &,
            Range2=Upp::Vector<Upp::WString> &,
            Less=bool (const Upp::WString &,const Upp::WString &)
        ]
C:\apps\dev\upp\uppsrc\Core\Sort.h(275): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'Upp::IndexSortIterator__<I,I2,VT>'
C:\apps\dev\upp\uppsrc\Core\Sort.h(275): note: The target type has no constructors
C:\apps\dev\upp\uppsrc\Core\Sort.h(274): error C2672: 'Sort__': no matching overloaded function found
C:\apps\dev\upp\uppsrc\Core\Sort.h(276): error C2780: 'void Upp::Sort__(I,I,const Less &)': expects 3 arguments - 2 provided
C:\apps\dev\upp\uppsrc\Core\Sort.h(97): note: see declaration of 'Upp::Sort__'
Switch.cpp
ScrollBar.cpp
DisplayPopup.cpp
DocEdit.cpp
Button.cpp
Text.cpp
LabelBase.cpp
EditField.cpp
ArrayCtrl.cpp
C:\apps\dev\upp\uppsrc\Core\CoSort.h(96): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'Upp::StableSortIterator__<I,VT>'
C:\apps\dev\upp\uppsrc\Core\CoSort.h(96): note: The target type has no constructors
C:\apps\dev\upp\uppsrc\CtrlLib\ArrayCtrl.cpp(2494): note: see reference to function template instantiation 'void Upp::CoStableSort<Upp::SubRangeClass<T *>&,Upp::Function<bool (int,int)>>(Range,const Less &)' being compiled
        with
        [
            T=int,
            Range=Upp::SubRangeClass<int *> &,
            Less=Upp::Function<bool (int,int)>
        ]
C:\apps\dev\upp\uppsrc\Core\CoSort.h(97): error C2440: '<function-style-cast>': cannot convert from 'const Less' to 'Upp::StableSortLess__<VT,Less>'
        with
        [
            Less=Upp::Function<bool (int,int)>
        ]
C:\apps\dev\upp\uppsrc\Core\CoSort.h(97): note: The target type has no constructors
C:\apps\dev\upp\uppsrc\Core\CoSort.h(96): error C2672: 'Upp::CoSort__': no matching overloaded function found
C:\apps\dev\upp\uppsrc\Core\CoSort.h(97): error C2780: 'void Upp::CoSort__(I,I,const Less &)': expects 3 arguments - 1 provided
C:\apps\dev\upp\uppsrc\Core\CoSort.h(67): note: see declaration of 'Upp::CoSort__'
C:\apps\dev\upp\uppsrc\Core\CoSort.h(97): error C2780: 'void Upp::CoSort__(Upp::CoWork &,I,I,const Less &)': expects 4 arguments - 1 provided
C:\apps\dev\upp\uppsrc\Core\CoSort.h(2): note: see declaration of 'Upp::CoSort__'
PopupTable.cpp
Static.cpp
FrameSplitter.cpp
HeaderCtrl.cpp
DropChoice.cpp
DropList.cpp
MultiButton.cpp
Help.cpp
SliderCtrl.cpp
AKeys.cpp
Splitter.cpp
Prompt.cpp
ColumnList.cpp
RichTextView.cpp
Progress.cpp
SuggestCtrl.cpp
StatusBar.cpp
ToolButton.cpp
MenuItem.cpp
DateTimeCtrl.cpp
Bar.cpp
MenuBar.cpp
ToolBar.cpp
ToolTip.cpp
DropTree.cpp
FileSel.cpp
C:\apps\dev\upp\uppsrc\Core\Sort.h(282): error C2512: 'std::less<std::remove_reference<T &>::type>': no appropriate default constructor available
        with
        [
            T=int
        ]
C:\apps\dev\upp\uppsrc\Core\Sort.h(282): note: The target type has no constructors
C:\apps\dev\upp\uppsrc\CtrlLib\FileSel.cpp(692): note: see reference to function template instantiation 'void Upp::IndexSort<Upp::Vector<int>&,Upp::Vector<int>&>(MasterRange,Range2)' being compiled
        with
        [
            MasterRange=Upp::Vector<int> &,
            Range2=Upp::Vector<int> &
        ]
ColorPusher.cpp
TreeCtrl.cpp
TabCtrl.cpp
DlgColor.cpp
ColorPopup.cpp
FileList.cpp
TrayIconX11.cpp
FileSelUtil.cpp
Windows.cpp
Win32.cpp
Gtk.cpp
PrinterJob.cpp
TrayIconWin32.cpp
TrayIconGtk.cpp
ChGtk3.cpp
LNGCtrl.cpp
C:\apps\dev\upp\uppsrc\Core\Sort.h(174): error C2512: 'std::less<std::remove_reference<T &>::type>': no appropriate default constructor available
        with
        [
            T=int
        ]
C:\apps\dev\upp\uppsrc\Core\Sort.h(174): note: The target type has no constructors
C:\apps\dev\upp\uppsrc\CtrlLib\LNGCtrl.cpp(45): note: see reference to function template instantiation 'void Upp::Sort<Upp::Vector<int>&>(Range)' being compiled
        with
        [
            Range=Upp::Vector<int> &
        ]
C:\apps\dev\upp\uppsrc\Core\Sort.h(174): error C2672: 'Upp::Sort__': no matching overloaded function found
C:\apps\dev\upp\uppsrc\Core\Sort.h(174): error C2780: 'void Upp::Sort__(I,I,const Less &)': expects 3 arguments - 2 provided
C:\apps\dev\upp\uppsrc\Core\Sort.h(97): note: see declaration of 'Upp::Sort__'
CtrlUtil.cpp
CtrlLibInit.cpp
Update.cpp
ChWin32.cpp
Ch.cpp
ChCoco.cpp
CtrlLib: 58 file(s) built in (0:34.80), 600 msecs / file

There were errors. (0:34.81)
Previous Topic: Cross Compilation: For Mac on Linux
Next Topic: Porting to Void Linux (XBPS, LibreSSL)
Goto Forum:
  


Current Time: Thu Apr 25 15:36:26 CEST 2024

Total time taken to generate the page: 0.01844 seconds