8 messages in com.mysql.lists.plusplusRe: Compiling the C++ for api for dum...| From | Sent On | Attachments |
|---|---|---|
| Philipp Stader | 31 Mar 2003 12:01 | |
| Will Bryant | 31 Mar 2003 15:06 | |
| Philipp Stader | 31 Mar 2003 21:29 | |
| Brian Butcher | 01 Apr 2003 00:42 | |
| Warren Young | 01 Apr 2003 07:37 | |
| Philipp Stader | 01 Apr 2003 12:15 | |
| Nguyen, Lee | 01 Apr 2003 12:30 | |
| Warren Young | 02 Apr 2003 15:17 |
| Subject: | Re: Compiling the C++ for api for dummies![]() |
|---|---|
| From: | Brian Butcher (bria...@e4e5.fsnet.co.uk) |
| Date: | 04/01/2003 12:42:48 AM |
| List: | com.mysql.lists.plusplus |
On Monday 31 March 2003 9:01 pm, you wrote:
Hello everyone,
I spent three days now to get a clue about howto compile any sample that comes with the mysql c++ api tar.gz but i fail. Anyone able to give me a step by step howto ? I tried to compile simple1.cc under Debian Woody and with Suse 8.1 but i fail constantly. Probably i'm doing the wrong things (since i have no clue about libs, headers etc and gcc at all). Under Suse 8.1 make doesn't work due to some failures in the Makefile. With debian i had binaries once but they all segfaulted.
My goal is to do a linux console application that is able to store data in a mysql database. Since i don't know on what target system the program will run it should be compiled a way it works no matter what is installed surrounding it (think thats called "static"). Any help highly appreciated. If someone has a link with helpful information, i'm not afraid to read :-) I don't mind installing a fresh copy of "ThisDistroHere" if i get simple1.cc compiled ;-)
Kind regards
Phil
Here is my method: Using Mandrake 8.1 and KDevelop 2.0 (I have had less success with Slackware) In KDevelop Project Options: - Linker Options static X additional flags: -static additional libraries: -L/usr/local/lib/mysql -lmysqlclient -lz -lsqlplus
I had to install mysql from source so as to install the mysqlclient library correctly. Brian




