C++11 help needed for a new qTox port

Lawrence Velázquez larryv at macports.org
Mon Nov 24 12:46:41 PST 2014


On Nov 24, 2014, at 2:53 PM, Marko Käning <MK-MacPorts at techno.ms> wrote:

> I am trying to set up a new port file for qTox.
> Unfortunately I struggle with C++11 stuff - see below.
> 
> What can I do to make the code compile for C++11?
> 
> Greets,
> Marko
> 
> 
> ---
> 
> :info:build In file included from src/widget/form/settings/generalform.cpp:21:
> :info:build ./src/misc/settings.h:25:21: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
> :info:build namespace Db { enum class syncType; }
> :info:build                     ^
> :info:build ./src/misc/settings.h:25:27: error: ISO C++ forbids forward references to 'enum' types
> :info:build namespace Db { enum class syncType; }
> :info:build                           ^

Is the C++ compiler being invoked with "-std=c++11"?

vq


More information about the macports-dev mailing list