> On May 16, 2015, at 4:44 PM, Typz <[email protected]> wrote: > > Hello, > > This may be an issue with c++11, which is not enable by default (at least on > Mac OS). So maybe you need to enable it in your .pro file like this: > CONFIG += c++11
Actually we do that in qtcreator.pri, which your plugin .pro file includes (by including qtcreatorplugin.pri which includes qtcreator.pri). Which OS X version are you working on? Which compiler do you use? (Note that you need to use Clang, which should be the default anyhow.) Br, eike > Best regards, > > On 16 mai 2015, at 14:02, Yang.H <[email protected]> wrote: > >> I'm using Qt Creator 3.3.2 based on Qt 5.4.1 on my MAC. >> >> I created a plugin and added something in it including inheriting some >> coreplugin classes. Like the IDocumentFactory class. >> >> But when I compile my plugin, errors emerged: >> no type named 'function' in namespace 'std' >> typedef std::function<IDocument *(const QString &fileName)> Opener; >> ^ >> Why cannot I use function template in std in my plugin? >> >> Is there anyone who is familiar with this coreplugin code? >> >> Young. >> >> C.S.Peking University >> _______________________________________________ >> Qt-creator mailing list >> [email protected] >> http://lists.qt-project.org/mailman/listinfo/qt-creator > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/qt-creator -- Eike Ziller, Senior Software Engineer - The Qt Company GmbH The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
