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 » U++ Library support » U++ Core » Source code from github doesn't compile
Source code from github doesn't compile [message #48934] Sun, 05 November 2017 18:31 Go to next message
Tess is currently offline  Tess
Messages: 4
Registered: November 2017
Location: Moscow
Junior Member
I'm trying to compile compile my app using Core package from official github and I'm getting next errors:

    /home/tess/upp/uppsrc/Core/CoWork.h (159): error: 'result_of_t' is not a member of 'std'
    /home/tess/upp/uppsrc/Core/CoWork.h (159): error: 'result_of_t' is not a member of 'std'
    /home/tess/upp/uppsrc/Core/CoWork.h (159): error: 'decay_t' is not a member of 'std'
    /home/tess/upp/uppsrc/Core/CoWork.h (159): error: template argument 1 is invalid
    /home/tess/upp/uppsrc/Core/CoWork.h (159): error: expected ')' before '<' token
    /home/tess/Documents/socketServer/server.cpp (41): error: use of deleted function 'Upp::WebSocket::WebSocket(const Upp::WebSocket&)'
    /home/tess/upp/uppsrc/Core/Inet.h (173): error: 'Upp::TcpSocket::TcpSocket(const Upp::TcpSocket&)' is private
    /home/tess/upp/uppsrc/Core/Inet.h (599): error: within this context
    /home/tess/upp/uppsrc/Core/Inet.h (60): error: 'Upp::IpAddrInfo::IpAddrInfo(const Upp::IpAddrInfo&)' is private
    /home/tess/upp/uppsrc/Core/Inet.h (599): error: within this context
    /home/tess/upp/uppsrc/Core/Inet.h (599): error: use of deleted function 'constexpr Upp::BiVector<Upp::WebSocket::Input>::BiVector(const Upp::BiVect
    or<Upp::WebSocket::Input>&)'
    /home/tess/upp/uppsrc/Core/Inet.h (599): error: use of deleted function 'constexpr Upp::BiVector<Upp::String>::BiVector(const Upp::BiVector<Upp::Stri
    ng>&)'

My compiler: gcc version 5.4.0
–°ommit hash: 2c9d3b69a7ac726568c99501c7a4f1e03959ed90
Current date: 05.11.2017
Re: Source code from github doesn't compile [message #48935 is a reply to message #48934] Sun, 05 November 2017 19:34 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11956
Registered: November 2005
Ultimate Member
Most likely you need to change -std=c++11 to -std=c++14 in Build methods.
Re: Source code from github doesn't compile [message #48938 is a reply to message #48935] Sun, 05 November 2017 23:36 Go to previous messageGo to next message
Tess is currently offline  Tess
Messages: 4
Registered: November 2017
Location: Moscow
Junior Member
This helped only against CoWork.h errors. But errors in file Inet.h still exist.
Re: Source code from github doesn't compile [message #48939 is a reply to message #48938] Mon, 06 November 2017 00:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11956
Registered: November 2005
Ultimate Member
Tess wrote on Sun, 05 November 2017 23:36
This helped only against CoWork.h errors. But errors in file Inet.h still exist.


That looks like something triggered by

/home/tess/Documents/socketServer/server.cpp

what is around line 41 there?

(It looks like you are trying to do WebSocket copy?)
Re: Source code from github doesn't compile [message #48940 is a reply to message #48939] Mon, 06 November 2017 00:42 Go to previous messageGo to next message
Tess is currently offline  Tess
Messages: 4
Registered: November 2017
Location: Moscow
Junior Member
Yes. I'm trying to copy a websocket. Is there any way to pass websocket to another function? I tried to use pick function, but there were errors too.
It is compiled without errors, if I comment this line(41).
Re: Source code from github doesn't compile [message #48941 is a reply to message #48940] Mon, 06 November 2017 00:55 Go to previous message
mirek is currently offline  mirek
Messages: 11956
Registered: November 2005
Ultimate Member
Tess wrote on Mon, 06 November 2017 00:42
Yes. I'm trying to copy a websocket. Is there any way to pass websocket to another function? I tried to use pick function, but there were errors too.
It is compiled without errors, if I comment this line(41).


Depends on context, but often the best way is to use One.

E.g.

One<WebSocket> MakeMySocket()
{
    One<WebSocket> h;
    WebSocket& s = h.Create();
    // do things with s
    return h;
}


Also, instead of BiVector<WebSocket> use BiArray<WebSocket>

Mirek
Previous Topic: Bugs in AppendFiles for Win32 (CtrlCore)
Next Topic: Jsonize problem
Goto Forum:
  


Current Time: Sat Jul 20 05:26:38 CEST 2019

Total time taken to generate the page: 0.00762 seconds