Path: news.net.uni-c.dk!uninett.no!news.algonet.se!algonet!news.tele.dk!small.news.tele.dk!newsfeed101.telia.com!nf02.dk.telia.net!news104.dk.telia.net!not-for-mail From: Mirco Drick Subject: Re: cannot link to mysqlclient under linux Date: Tue, 25 Jun 2002 11:54:53 +0200 Newsgroups: comp.lang.beta Message-ID: References: User-Agent: Pan/0.11.94 (We pass through this world but once) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "Morten Grouleff" Lines: 29 NNTP-Posting-Host: 212.10.123.21 X-Trace: 1024998838 news.stofanet.dk 14569 212.10.123.21 X-Complaints-To: Telia Stofa Abuse Xref: news.net.uni-c.dk comp.lang.beta:13260 thanks ! that did it. On Mon, 24 Jun 2002 10:08:42 +0200, Morten Grouleff wrote: > Mirco Drick writes: > >> i have a program in which i make use of mysql. >> I have copied all libmysqlclient.* from my libmysql-devel dir to >> $BETALIB/lib/linux. >> when compiling under linux (Mandrake 8.2) with MySQL 3.23.47 i get the >> fellowing error during linking: >> >> Linking >> /usr/local/beta/lib/linux/libmysqlclient.a(my_compress.o): In function `my_uncompress': >> my_compress.o(.text+0xaa): undefined reference to `uncompress' >> /usr/local/beta/lib/linux/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': >> my_compress.o(.text+0x13d): undefined reference to `compress' > > The linker apparently does't include "libz" in the linking process, even > though the MySQL library uses it. Try adding the following line > > LINKOPT default '-lz'; > > to "$BETALIB/betadbc/betadbc_mysql.bet". If that is not possible, add it > to a file in your program in the properties section, i.e. along with > INCLUDE and ORIGIN. > > Regards,