mbroadst / qamqp

AMQP 0.9.1 implementation for Qt
Other
151 stars 127 forks source link

Build under latest Ubuntu/Qt has a problem with include_next <stdlib.h> #74

Closed MangoCats closed 6 years ago

MangoCats commented 6 years ago

In a fresh Ubuntu 18.04 install with a fresh Qt Creator & Qt 5.11.1 install (with apt-get install build-essential), when building qamqp, when rabbitinterface.h includes , it drills down to /usr/include/c++/7/bits/stl_algo.h which includes and in there, there is an #include_next which fails.

This is a fairly common problem described around the internet, unfortunately the qamqp code is encountering it in the latest system configurations... there are a number of suggested ways to get around it, mostly having to do with -isystem and /usr/include... something in the qamqp.pro file might be able to address it.

MangoCats commented 6 years ago

Nevermind... it's not in the library itself but something with apps I have added to it (like the tutorials, but the tutorials don't have the problem.)