Okay so i found it, you have to link it using the following cpp code:
#pragma comment(lib,"name.lib")
sorry if i sound like anoob, havent used cpp before enigma, at least not to the extent i'm trying to now.
EDIT:
okay this is getting irritating, it was working fine like 3 minutes ago, i add some code and it starts giving me the -6 error, so i get rid of that code, and its still giving me -6, what the hell, it cant make up its mind, irritating.
ENIGMAsystem/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ssq.h:85: error: non-local function `char* SSQ_FormatBatchReply(enigma::OBJ_connector::myevent_create()::SSQ_BATCH_REPLY*, int)' uses local type `enigma::OBJ_connector::myevent_create()::SSQ_BATCH_REPLY' ENIGMAsystem/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ssq.h:87: error: non-local function `BOOL SSQ_GetInfoReply(enigma::OBJ_connector::myevent_create()::SSQ_INFO_REPLY*)' uses local type `enigma::OBJ_connector::myevent_create()::SSQ_INFO_REPLY' ENIGMAsystem/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ssq.h:88: error: non-local function `BOOL SSQ_GetPlayerReply(enigma::OBJ_connector::myevent_create()::SSQ_PLAYER_REPLY*)' uses local type `enigma::OBJ_connector::myevent_create()::SSQ_PLAYER_REPLY' ENIGMAsystem/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ssq.h:90: error: non-local function `char* SSQ_GetRuleName(enigma::OBJ_connector::myevent_create()::SSQ_RULES_REPLY*, short int)' uses local type `enigma::OBJ_connector::myevent_create()::SSQ_RULES_REPLY' ENIGMAsystem/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ssq.h:91: error: non-local function `char* SSQ_GetRuleValue(enigma::OBJ_connector::myevent_create()::SSQ_RULES_REPLY*, short int)' uses local type `enigma::OBJ_connector::myevent_create()::SSQ_RULES_REPLY' ENIGMAsystem/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ssq.h:95: error: non-local function `BOOL SSQ_SetCallbackAddress(int (*)(DWORD, enigma::OBJ_connector::myevent_create()::SSQ_REPLY_UNION*))' uses local type `enigma::OBJ_connector::myevent_create()::SSQ_REPLY_UNION' Compile failed. [1] G++ error. Compile failed (-6)
So using #pragma comment works without a hitch, but using #include to link to my header gives me that compile error.
|