Closed Locutu5 closed 5 years ago
Yep, we're aware of that problem (https://travis-ci.org/OpenVPN/openvpn3/jobs/541446445#L147) As a workaround, can you try to switch to C++14?
So I am not going crazy :) I did read something about it being a c++14 and above functionality. I'll see if I can get Qt to support C++14.
Thanks for the quick reply.
Just for those who also come across this problem. Changing in the Qt .pro file CONFIG += c++11 to CONFIG += c++14 will fix this particular issue.
We still want to ensure OpenVPN 3 is functional with C++11. But pure C++11 compilers (stock RHEL 7 gcc-4.8 tested) with no C++14 support seems only to barf at this issue, not triggering a fatal error. While C++14 capable compilers are far more picky.
Regardless, this should be improved - but we will handle that improvement outside of this ticket.
Understood. Until this improvement has been fixed this information may help someone else hence the reason I posted the solution which worked for me. Others mileage may vary :D
Hi all, I have started implementing a Qt based client for OpenVPN3 and for lack of clear instructions I am taking it slowly.
With just including the header (actually openvpncli.cpp) and trying a test compile I am getting the error
The class I am trying to implement this in is
As you can see it is pretty much an empty class. What am I missing to be causing this error?
I am using Qt 5.12.3 and have enabled C++11 in the config. The compiler is g++ and the Linux is Arch.