database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
ㆍLDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
LDAP Q&A 216 게시물 읽기
No. 216
Re: Error Message 입니다...
작성자
이지항
작성일
2001-01-04 14:27
조회수
10,979

라이브러리 링크는 잘 하셨는데요

소스코드에 다음과 같은 헤더파일을 including 해주어야 합니다.

소스코드에 다음을 첨가해 보세요.

 

#include <lber.h>

 

이 라인을 첨가하고

라이브러리를 링크시켜 컴파일하면 에러메세지가 사라집니다.

 

참고로 netscape SDK인 경우는 lber.h를 include하지 않아도 문제가 없지만

University of Michigan SDK를 사용하시는 경우에는 반드시 include해주어야 합니다.

 

>>오세범 님께서 쓰시길<<

 

:: $ gcc just_bind.c -o just_bind -lldap -llber

:: In file included from just_bind.c:2:

:: /usr/local/include/ldap.h:302: parse error before `BerElement'

:: /usr/local/include/ldap.h:302: warning: no semicolon at end of struct or union

:: /usr/local/include/ldap.h:306: parse error before `}'

:: /usr/local/include/ldap.h:306: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:371: parse error before `LDAPMessage'

:: /usr/local/include/ldap.h:371: warning: no semicolon at end of struct or union

:: /usr/local/include/ldap.h:372: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:380: parse error before `}'

:: /usr/local/include/ldap.h:380: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:424: parse error before `Sockbuf'

:: /usr/local/include/ldap.h:424: warning: no semicolon at end of struct or union

:: /usr/local/include/ldap.h:450: parse error before `*'

:: /usr/local/include/ldap.h:450: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:452: parse error before `*'

:: /usr/local/include/ldap.h:452: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:455: parse error before `*'

:: /usr/local/include/ldap.h:455: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:470: parse error before `ld_lber_encode_translate_proc'

:: /usr/local/include/ldap.h:470: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:471: parse error before `ld_lber_decode_translate_proc'

:: /usr/local/include/ldap.h:471: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:480: warning: data definition has no type or storage class

:: /usr/local/include/ldap.h:524: parse error before `*'

::

:: <중간생략>

::

:: /usr/local/include/ldap.h:735: parse error before `*'

:: /usr/local/include/ldap.h:736: parse error before `)'

:: /usr/local/include/ldap.h:746: parse error before `*'

:: /usr/local/include/ldap.h:747: parse error before `*'

:: /usr/local/include/ldap.h:749: parse error before `*'

:: /usr/local/include/ldap.h:756: parse error before `*'

:: /usr/local/include/ldap.h:758: parse error before `*'

:: /usr/local/include/ldap.h:760: parse error before `*'

:: /usr/local/include/ldap.h:762: parse error before `*'

:: just_bind.c: In function `main':

:: just_bind.c:7: `ld' undeclared (first use in this function)

:: just_bind.c:7: (Each undeclared identifier is reported only once

:: just_bind.c:7: for each function it appears in.)

:: just_bind.c:8: parse error before `char'

:: just_bind.c:17: `User' undeclared (first use in this function)

:: just_bind.c:17: `Passwd' undeclared (first use in this function)

:: just_bind.c:6: warning: return type of `main' is not `int'

:: $

:: 위와 같이 나옵니다... 아무래도 라이브러리가 링크가 제대로 않돼는것 같은데..

:: 어케 해야할런지 알려주세염...

[Top]
No.
제목
작성자
작성일
조회
222(에러 문의) ldap_bind: Invalid credentials
윤지영
2001-01-05
11773
223┕>Re: (에러 문의) ldap_bind: Invalid credentials
박근오
2001-01-05 17:23:10
12927
224 ┕>Re: Re: (에러 문의) ldap_bind: Invalid credentials
윤지영
2001-01-05 22:20:33
12891
226  ┕>Re: Re: Re: (에러 문의) ldap_bind: Invalid credentials
백종규
2001-01-06 09:36:59
12844
229   ┕>Re: Re: Re: Re: (에러 문의) ldap_bind: Invalid credentials
박근오
2001-01-06 12:43:25
12576
233    ┕>Re: Re: Re: Re: Re: (에러 문의) ldap_bind: Invalid credentials
정재익
2001-01-07 23:09:52
12589
230  ┕>Re: Re: Re: (에러 문의) ldap_bind: Invalid credentials (openldap 2.0.7에서)
박근오
2001-01-06 12:35:50
12338
220드디어 컴파일에 성공했습니다..!!!
오세범
2001-01-04
11530
218ldap 구현....
oh
2001-01-04
11743
219┕>Re: ldap 구현....
오세범
2001-01-04 19:18:32
12720
214Error Message 입니다...
오세범
2001-01-03
10340
215┕>Re: Error Message 입니다...
정재익
2001-01-03 21:02:33
11024
216┕>Re: Error Message 입니다...
이지항
2001-01-04 14:27:44
10979
217┕>Re: Error Message 입니다...
이지항
2001-01-04 14:28:41
11369
207suffix와 rootdn의 설정...
임오근
2001-01-03
8730
209┕>Re: suffix와 rootdn의 설정...
송상준
2001-01-03 11:37:54
9856
211┕>Re: suffix와 rootdn의 설정...
박근오
2001-01-03 12:51:52
9829
205RedHat 7.0 에 LDAP이 채용되어있군요...
오세범
2001-01-02
9034
206┕>Re: RedHat 7.0 에 LDAP이 채용되어있군요...
정재익
2001-01-02 19:18:37
9755
204ldap 인덱싱에서...
임오근
2001-01-02
8854
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.020초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다