Compilation Error...how to ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello 

I m having quite a lot of trouble in having compilation of GNUgk 2.0.7
with LDAP support.Now i m having this problem while compiling
'gk_ldap_inteface.h'.
I am having 'ldapapi.h'.
How can i solve this problem.



/////////////////////////////////////////////////////////////////////

#ifdef HAS_LEVEL_TWO_LDAPAPI
# include "ldapapi.h"
#else
# include <ldap.h>
#endif // HAS_LDAP_LEVEL_TWO_API

#include <vector>
#include <ptlib.h>
#include <iostream.h>



#define CACHE_TIMEOUT 0
#define CACHE_MAXMEM 100 // disable cache

#ifndef LDAP_HAS_CACHE


class gk_ldap_cache_search_class {
private:
	char *base;
	int scope;
	char *filter;
//	char **attrs;
	PStringList attrs;
	int attrsonly;
	char * strndup(const char orig[], int len);
public:
	LDAPMessage *message;
	int msgid;
	gk_ldap_cache_search_class(const char *bse, int scpe, const char
*fltr, char **attr, int attrsnly, LDAPMessage *res);
	gk_ldap_cache_search_class();
	~gk_ldap_cache_search_class();
	void set_values(char *bse, int scpe, char *fltr, char **attr, int
attrsnly, LDAPMessage *res);
	bool is_search(char const *base, int scope, char const *filter, char
**attrs, int attrsonly);
};

typedef vector<gk_ldap_cache_search_class*> gk_ldap_search_type;   // LINE 73

typedef struct {
	LDAP * ld;
	gk_ldap_search_type search_cache;                           // LINE 77
	int maxmem;
} GK_LDAP;

#else 

typedef struct {
	LDAP * ld;
} GK_LDAP;

#endif //LDAP_HAS_CACHE1



ERROR : 

gkldap.cxx
gk_ldap_interface.h(73) : error C2143: syntax error : missing ';' before '<'
gk_ldap_interface.h(73) : error C2143: syntax error : missing ';' before '<'
gk_ldap_interface.h(77) : error C2146: syntax error : missing ';'
before identifier 'search_cache'
gk_ldap_interface.h(77) : error C2501: 'gk_ldap_search_type' : missing
storage-class or type specifiers
gk_ldap_interface.h(77) : error C2501: 'search_cache' : missing
storage-class or type specifiers


-- 
Kamran Bukhari
Software Engineer


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux