5 messages in com.mysql.lists.plusplusRe: static building| From | Sent On | Attachments |
|---|---|---|
| Terrence Moodley | 08 Mar 2001 07:11 | |
| Martin Sengstschmid | 08 Mar 2001 08:13 | |
| Martin Thoma | 08 Mar 2001 08:45 | |
| Martin Sengstschmid | 08 Mar 2001 09:41 | |
| André Schoorl | 08 Mar 2001 09:41 |
| Subject: | Re: static building![]() |
|---|---|
| From: | Martin Sengstschmid (mart...@musiker.at) |
| Date: | 03/08/2001 08:13:30 AM |
| List: | com.mysql.lists.plusplus |
I found in the archives of the mailinglist (Dec 2000):
Now you are using shared (libsqlplus.so).You need static (something like lisqlplus.a) library of mysql++ to get all things in one executable. One of the solutions would be to change Makefile of mysql++ source distribution. When all object files (*.o ) are compiled use: ar -q libsqlplus.a *.o to get static library of mysql++
Arturs Aboltins mailto:aabo...@exchange.telekom.lv
Hope it helps! Martin
hi
how do I build a static executable file using mysql?
i have tried this command:
c++ simple8March.cc -I/usr/include/mysql -L/usr/lib -L/usr/lib/mysql -static
-lsqlplus -lmysqlclient -o BankfinMailer
but i get this error message:
/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
Terrence




