When you complie your code with Dialogic’s GCT Library, you may get errors like:
too many arguments to function ‘int relm()’
too many arguments to function ‘MSF *getm()’
Well Key to cure this problem is to include Dialogic files outside #define file_name predirective
i.e. instead of
#ifndef ISUP_CALL_FILTER_H #define ISUP_CALL_FILTER_H #include <cstdlib> #include <cstddef> #include <cstdio> using namespace std; #include "logger.h" #include "command_line_parser.h" #include "config_file_reader.h" #define LINT_ARGS extern "C" { #include "system.h" #include "msg.h" #include "sysgct.h" #include "ss7_inc.h" #include "mtp_inc.h" #include "sctp_inc.h" #include "scp_inc.h" #include "map_inc.h" } #define ISUP_SUCCESS (1) #define ISUP_ERROR (0) #endif /* FSUP_CALL_FILTER_H */
do like:
#define LINT_ARGS extern "C" { #include "system.h" #include "msg.h" #include "sysgct.h" #include "ss7_inc.h" #include "mtp_inc.h" #include "sctp_inc.h" #include "scp_inc.h" #include "map_inc.h" } #ifndef ISUP_CALL_FILTER_H #define ISUP_CALL_FILTER_H #include <cstdlib> #include <cstddef> #include <cstdio> using namespace std; #include "logger.h" #include "command_line_parser.h" #include "config_file_reader.h" #define ISUP_SUCCESS (1) #define ISUP_ERROR (0) #endif /* FSUP_CALL_FILTER_H */