Without seeing any code I guess that you've made a typo at, or before line 70 in
your .h file; you also forgot to #include <string.h> n your .c file.
kind regards,
Jos
ps. next time also include some relevant code and not just those error messages.
We don't like to guess here. Also please use the proper code tags for readability.
after adding <string.h> I am now not getting any warning regarding strlen,strcpy etc. but I still facing following error
CCWebBrowser.c:135: error: ‘CUSTOMERCENTRAL_HEADER_TEXT’ undeclared (first use in this function)
CCWebBrowser.c:135: error: (Each undeclared identifier is reported only once
CCWebBrowser.c:135: error: for each function it appears in.)
CCWebBrowser.c:312: error: ‘iDumpLevel’ undeclared (first use in this function)
CCWebBrowser.c:617: warning: cast to pointer from integer of different size
#ifndef CCWB_CONFIGURATION
#define CCWB_CONFIGURATION
#define CUSTOMERCENTRAL_VERSION_TEXT "V078 09/20/2005 00:00"
#ifdef CUSTOMERCENTRAL_V10
#define CUSTOMERCENTRAL_HEADER_TEXT "Customer Central All Rights Reserved.\n"
#else
ERROR_INVALID_CUSTOMERCENTRAL_VERSION
#endif
#define CUSTOMERCENTRAL_OPENSSL_VERSION_TEXT "OpenSSL v0.9.8"
#define CUSTOMERCENTRAL_ICU_VERSION_TEXT "ICU v3,4"
#ifdef TWB_CONFIGURATION_ALLOCATE
int iDumpLevel = 0;
int iDebug = 0;
int iConfigurationLogLevelOverride = 0;
int iConfigurationSessionTimeOutOverride = 0;
int iConfigurationGWWait = 15 * 60;
static char *pConfigurationBuffer = 0;
FILE *fileLogFile = 0;
int iLogFileLock = 0;
int iConfigurationLogFileDays = 10;
char *pszConfigurationHomeDir;
char *pszConfigurationLogFile;
int iConfigurationLogLevel = 0;
int iConfigurationSessionTimeOut = 60;
int iConfigurationRequestTimeOut = 120;
int iConfigurationActiveSessionsDelayThresholdType = 0; // 0=% 1=Value
int iConfigurationActiveSessionsDelayThreshold = 25; // 25%
//efine COUNT_WAIT_FOR_GATEWAY 9
int iConfigurationProxy = 0;
int iConfigurationProxyPort = 0;
char *pszConfigurationProxyHost = 0;
char *pszConfigurationProxyLocalDomain = 0;
char *pszConfigurationProxyLogin = 0;
int iConfigurationSSLCertificateCheck = 0;
int iConfigurationURLDomainCheck = 0;
#ifdef WIN32
#define PATH_SEPARATOR "\\"
#define DEFAULT_HOME_DIR "\\"
#define DEFAULT_LOGFILE_PATH "CustomerCentral\\log"
#endif
#ifdef UNIX
#define PATH_SEPARATOR "/"
#define DEFAULT_HOME_DIR "/"
#define DEFAULT_LOGFILE_PATH "CustomerCentral/log"
#endif
#define DEFAULT_LOGFILE_NAME "CCWebBrowser"
#else
extern int iDumpLevel;
extern int iDebug;
extern int iConfigurationLogLevelOverride;
extern int iConfigurationSessionTimeOutOverride;
extern int iConfigurationGWWait;
extern FILE *fileLogFile;
extern int iLogFileLock;
extern int iConfigurationLogFileDays;
extern const char *pszConfigurationHomeDir;
extern const char *pszConfigurationLogFile;
extern const int iConfigurationLogLevel;
extern const int iConfigurationSessionTimeOut;
extern const int iConfigurationRequestTimeOut;
extern const int iConfigurationActiveSessionsDelayThresholdType;
extern const int iConfigurationActiveSessionsDelayThreshold;
extern const int iConfigurationProxy;
extern const int iConfigurationProxyPort;
extern const char *pszConfigurationProxyHost;
extern const char *pszConfigurationProxyLocalDomain;
extern const char *pszConfigurationProxyLogin;
extern const int iConfigurationSSLCertificateCheck;
extern const int iConfigurationURLDomainCheck;
#endif
/************************************************** ***************************/
/* CCWebConfiguration */
/************************************************** ***************************/
unsigned int CCWebConfiguration(
char *pszIPAddress, // > Gateway HostName/IP Address
int iPort, // > Gateway Port Number
char *pszProxyHost, // > Proxy Host
int iProxyPort // > Proxy Port Number
);
unsigned int CCWebConfigurationTermination(
char *pszIPAddress, // > Gateway HostName/IP Address
int iPort, // > Gateway Port Number
unsigned int uiTerminatingEP // > Terminating EP
);
unsigned int CCWebConfigurationLogFile(
);
#endif