Unsolved CFUserNotificationDisplayAlert not working
-
Hi,
In my project i includes:
#include <CoreFoundation/CoreFoundation.h>
and
#include <QtMacExtras>and i am trying to use the function CFUserNotificationDisplayAlert,
but the compiler throw error "Symbol(s) not found for architecture x86_64"
How can i fix this? (I am compile on OCX environment).THX
-
Hi,
Are you linking your project to the CoreFoundation framework ?
-
Yes, I do.
QT +=macextras -
Using the qtmacextras module doesn't mean that you are linking agains the CoreFoundation framework.
What if you add
LIBS += -framework CoreFoundation
to your .pro file ?