I'm trying to build a C payload to run on my PS4.
This is what I have:
#include "ps4.h"
int (*sceSysUtilSendSystemNotificationWithText)(int messageType, int userID, char* message);
void notify(char *message) {
    char buffer[512];
    sprintf(buffer, "%s\n\n\n\n\n\n\n", message);
    sceSysUtilSendSystemNotificationWithText(36, 0x10000000, buffer);
}
int _main(void) {
    initKernel();
    initLibc();
    initPthread();
    initNetwork();
    initJIT();
    int module;
    loadModule("libSceSysUtil.sprx", &module);
    RESOLVE(module, sceSysUtilSendSystemNotificationWithText);
    notify("Hello World!");
    return 0;
}
But I'm getting this error:
In function notify: main.c:(.text+0x39): undefined reference to sceSysUtilSendSystemNotificationWithText
But I defined it on line 3, what is going wrong?
