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
운영게시판
최근게시물
MySQL Q&A 1651 게시물 읽기
No. 1651
[Q]add -lz to your command line ?
작성자
박승홍
작성일
2000-05-17 10:57
조회수
8,029

In MySQL-devel-3.23.12c-1 rpm , the c source test.c was compiled well

 

but in MySQL-devel-3.23.15-1 rpm , when compileing same source I met error message

 

as follows;

 

======================================================================

[root@cboss cboss]# gcc -g -o test test.c -L/usr/lib/mysql -lmysqlclient

 

/usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress':

my_compress.o(.text+0x97): undefined reference to `uncompress'

/usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':

my_compress.o(.text+0x12b): undefined reference to `compress'

collect2: ld returned 1 exit status

============================================================

 

위와 같은 질문에 Tim의 답변 내용이 You need to add -lz to your command line when you link. 입니다.

그래서

[root@cboss cboss]# gcc -g -o test test.c -L/usr/lib/mysql -lmysqlclient -lz

했더니

/usr/bin/ld: cannot find -lz

collect2: ld returned 1 exit status

라는 메세지로 끝나는 군요..

Tim이 뭘 하라는 건지 좀 알려주시곘습니까?

 

그럼 즐통

[Top]
No.
제목
작성자
작성일
조회
1656group by문에 대한 질문입니다.
신의손
2000-05-17
8323
1660┕>Re: group by문에 대한 질문입니다.
정재익
2000-05-17 15:30:39
8726
1664 ┕>Re: Re: 감사합니다. 성공했어요
신의손
2000-05-17 15:54:31
8827
1653# 웹호스팅 서비스에서 MySQL 사용가능한지..?
구자일
2000-05-17
7298
1668┕>Re: # 웹호스팅 서비스에서 MySQL 사용가능한지..?
정재익
2000-05-17 18:40:42
7699
1652서버 부하율 & 프로세스 분석 & APM & top 명령어
송재호
2000-05-17
7389
1654┕>[긴급 재 질문] 서버가 뻗습니다. 죽기 일보 직전
송재호
2000-05-17 12:03:48
7798
1657 ┕>Re: [긴급 재 질문] 서버가 뻗습니다. 죽기 일보 직전
백종규
2000-05-17 13:56:44
7411
1658 ┕>Re: [긴급 재 질문] 서버가 뻗습니다. 죽기 일보 직전
정재익
2000-05-17 14:38:12
7947
1674┕># Re: 서버 부하율 & 프로세스 분석 & APM & top 명령어
토 ㄲ ㅣ
2000-05-18 10:17:44
8229
1651[Q]add -lz to your command line ?
박승홍
2000-05-17
8029
1663┕>Re: [Q]add -lz to your command line ?
정재익
2000-05-17 15:42:21
8126
1672 ┕>Re: Re: [Q]add -lz to your command line ? 감사합니다(내용없음)
박승홍
2000-05-18 09:06:15
8490
1649Windows2000 과 IIS에서 mySQL 설치가 안됩니다.
김태명
2000-05-17
7569
1675┕># Re: Windows2000 과 IIS에서 mySQL 설치가 안됩니다.
토 ㄲ ㅣ
2000-05-18 10:21:37
8184
1676┕># Re: Windows2000 과 IIS에서 mySQL 설치가 안됩니다.
토 ㄲ ㅣ
2000-05-18 10:21:41
7484
1646# MySQL 초보인데용.. 흑흑..
멋진인딩
2000-05-16
8001
1650┕>Re: # MySQL 초보인데용.. 흑흑..
정재익
2000-05-17 00:21:50
8014
1645MySQL에도 SQL*Loader가 있는지?
최재원
2000-05-16
6908
1647┕># Re: MySQL에도 SQL*Loader가 있는지?
문태준
2000-05-16 23:02:53
7559
1655 ┕>Re: # Re: MySQL에도 SQL*Loader가 있는지?
최재원
2000-05-17 13:31:35
7313
1665  ┕>Re: Re: # Re: MySQL에도 SQL*Loader가 있는지?
정재익
2000-05-17 16:34:41
7272
1667   ┕>Re: 고맙습니다. ^^
최재원
2000-05-17 16:56:20
8197
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다