Coder Social home page Coder Social logo

Error on compiling about qhttp HOT 9 OPEN

williamkibira avatar williamkibira commented on August 19, 2024
Error on compiling

from qhttp.

Comments (9)

azadkuh avatar azadkuh commented on August 19, 2024

would you please give more info about the compiler version and your os?

from qhttp.

williamkibira avatar williamkibira commented on August 19, 2024

The version of QMake is

QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu

I am using linux lite 2.4 64 bit

On Mon, Sep 5, 2016 at 11:41 AM, amir zamani [email protected]
wrote:

would you please give more info about the compiler version and your os?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExC4gfZwLjMwUle0Y77Lda-JG-sRcMks5qm9WlgaJpZM4J0vDx
.

from qhttp.

azadkuh avatar azadkuh commented on August 19, 2024

@williamkibira

please have a look at: asciicast

under Ubuntu and ArchLinux, I have tried g++ 5.4+ / g++ 6.x without any problem.
please also make sure that you are using a recent c++ compiler with full c++14 support.

from qhttp.

azadkuh avatar azadkuh commented on August 19, 2024

and under Ubuntu 14.04 and g++ 5.3
asciicast

from qhttp.

williamkibira avatar williamkibira commented on August 19, 2024

OK , let me update my compiler to see if something change

On Mon, Sep 5, 2016 at 6:18 PM, amir zamani [email protected]
wrote:

and under Ubuntu 14.04 and g++ 5.3
[image: asciicast] https://asciinema.org/a/49652


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExCzNtduJHx26tl8ZOJZ8JFYrPWMvPks5qnDLWgaJpZM4J0vDx
.

from qhttp.

williamkibira avatar williamkibira commented on August 19, 2024

I have updated my compiler to 6.2 and a new error has occurred instead .

r::HttpRequestParser() [with TImpl =
qhttp::server::QHttpConnectionPrivate]’
private/qhttpserverconnection_private.hpp:33:66: required from here
private/httpparser.hxx:74:18: error: invalid use of ‘auto’
return me(p)->body(p, at, length);
^
private/httpparser.hxx: In instantiation of ‘static int
qhttp::details::HttpParser::onMessageComplete(http_parser_) [with
TImpl = qhttp::server::QHttpConnectionPrivate; http_parser = http_parser]’:
private/httpparser.hxx:38:45: required from
‘qhttp::details::HttpParser::HttpParser(http_parser_type) [with
TImpl = qhttp::server::QHttpConnectionPrivate]’
private/httpparser.hxx:106:57: required from
‘qhttp::details::HttpRequestParser::HttpRequestParser() [with TImpl
= qhttp::server::QHttpConnectionPrivate]’
private/qhttpserverconnection_private.hpp:33:66: required from here
private/httpparser.hxx:78:18: error: invalid use of ‘auto’
return me(p)->messageComplete(p);
^
make[1]: *_* [../tmp/unix/qhttp/qhttpserverconnection.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/home/william/Desktop/BUS_BUDDY_DESKTOP/qhttp/src'
make: *** [sub-src-make_first] Error 2

On Mon, Sep 5, 2016 at 6:21 PM, William Kibira [email protected]
wrote:

OK , let me update my compiler to see if something change

On Mon, Sep 5, 2016 at 6:18 PM, amir zamani [email protected]
wrote:

and under Ubuntu 14.04 and g++ 5.3
[image: asciicast] https://asciinema.org/a/49652


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExCzNtduJHx26tl8ZOJZ8JFYrPWMvPks5qnDLWgaJpZM4J0vDx
.

from qhttp.

azadkuh avatar azadkuh commented on August 19, 2024

it simply says that the toolchain has not configured to compile c++11/14

please make sure CONFIG += c++11 c++14 is enabled in commondir.pri and you can compile a trivial code like:

// shall return QByteArray
auto foo() {
   return QString("unicode").toUtf8();
}

from qhttp.

williamkibira avatar williamkibira commented on August 19, 2024

specifying common dirs

DEFINES *= QHTTP_HAS_CLIENT

Qt5.5.1 on OSX needs both c++11 and c++14!! the c++14 is not enough

CONFIG += c++11 c++14

unix {
TEMPDIR = $$PRJDIR/tmp/unix/$$TARGET
macx:TEMPDIR = $$PRJDIR/tmp/osx/$$TARGET
}

win32 {
warning("Windows port of this library has not been tested nor
profiled.")
TEMPDIR = $$PRJDIR/tmp/win32/$$TARGET
DEFINES += _WINDOWS WIN32_LEAN_AND_MEAN NOMINMAX
}

DESTDIR = $$PRJDIR/xbin
MOC_DIR = $$TEMPDIR
OBJECTS_DIR = $$TEMPDIR
RCC_DIR = $$TEMPDIR
UI_DIR = $$TEMPDIR/Ui
LIBS += -L$$PRJDIR/xbin

INCLUDEPATH += . $$PRJDIR/src $$PRJDIR/3rdparty

It is enabled

On Mon, Sep 5, 2016 at 7:50 PM, amir zamani [email protected]
wrote:

it simply says that the toolchain has not configured to compile c++11/14

please make sure CONFIG += c++11 c++14 is enabled in commondir.pri and
you can compile a trivial code like:

// shall return QByteArrayauto foo() {
return QString("unicode").toUtf8();
}


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExC_Fci43gVeOgEL2CMUvzNt_XXoUiks5qnEg4gaJpZM4J0vDx
.

from qhttp.

williamkibira avatar williamkibira commented on August 19, 2024

Just tested this

include

int main(){
auto value = 4;
std::cout << value <<std::endl;

return 0;
}
~

and it compiled and ran.

On Mon, Sep 5, 2016 at 7:56 PM, William Kibira [email protected]
wrote:

specifying common dirs

DEFINES *= QHTTP_HAS_CLIENT

Qt5.5.1 on OSX needs both c++11 and c++14!! the c++14 is not enough

CONFIG += c++11 c++14

unix {
TEMPDIR = $$PRJDIR/tmp/unix/$$TARGET
macx:TEMPDIR = $$PRJDIR/tmp/osx/$$TARGET
}

win32 {
warning("Windows port of this library has not been tested nor
profiled.")
TEMPDIR = $$PRJDIR/tmp/win32/$$TARGET
DEFINES += _WINDOWS WIN32_LEAN_AND_MEAN NOMINMAX
}

DESTDIR = $$PRJDIR/xbin
MOC_DIR = $$TEMPDIR
OBJECTS_DIR = $$TEMPDIR
RCC_DIR = $$TEMPDIR
UI_DIR = $$TEMPDIR/Ui
LIBS += -L$$PRJDIR/xbin

INCLUDEPATH += . $$PRJDIR/src $$PRJDIR/3rdparty

It is enabled

On Mon, Sep 5, 2016 at 7:50 PM, amir zamani [email protected]
wrote:

it simply says that the toolchain has not configured to compile c++11/14

please make sure CONFIG += c++11 c++14 is enabled in commondir.pri and
you can compile a trivial code like:

// shall return QByteArrayauto foo() {
return QString("unicode").toUtf8();
}


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExC_Fci43gVeOgEL2CMUvzNt_XXoUiks5qnEg4gaJpZM4J0vDx
.

from qhttp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.