7 messages in com.mysql.lists.plusplusmysql++ problem with Cygwin| From | Sent On | Attachments |
|---|---|---|
| Andrew Zhu | 26 Jul 2003 10:33 | .script |
| Ben Wolin | 26 Jul 2003 15:34 | |
| Ben Wolin | 29 Jul 2003 09:02 | |
| Warren Young | 29 Jul 2003 14:53 | |
| Ben Wolin | 29 Jul 2003 15:12 | |
| Ben Wolin | 29 Jul 2003 17:05 | |
| Sinisa Milivojevic | 30 Jul 2003 05:56 |
| Subject: | mysql++ problem with Cygwin![]() |
|---|---|
| From: | Ben Wolin (ben_...@phatbean.com) |
| Date: | 07/29/2003 09:02:27 AM |
| List: | com.mysql.lists.plusplus |
Hi,
Perhaps I asked this question the wrong way initially (included for didactic purposes below)
Has anyone gotten mysql++ 1.7.9 to build on a standard Cygwin 1.3.22 release?
If so, any tips or tricks would be greatly appreciated. As described below, I did manage to slog through the build, but perhaps I linked to the wrong library as the example application core dumps?
Thanks in advance for any clues on this!
Cheers, Ben
Ben Wolin wrote:
Hi,
I managed to build mysql++ 1.7.9 with:
Cygwin 1.3.22 gcc (GCC) 3.2 20020927 (prerelease) mysql 4.0.14a-win windows xp pro
I installed the gcc-3.0, 3.2 and 3.2.2 patches
I had to make a couple of tweaks to configure.in to get it to find the lib and includes properly
I needed to add -lmySQL to the Makefile in example to prevent the following error
resetdb.o(.text+0x232): In function `main': /cygdrive/c/home/benjamin/mysql++-1.7.9/examples/../sqlplusint/connection1.hh:40 : undefined reference to `_mysql_init' ...etc...
However, despite successful completion of the make, running resetdb results in a Segmentation Fault
Any clues what I'm doing wrong? Any and all help would be greatly appreciated.
I can successfully get to mysql with the command line interface as well as the console.
Thanks in advance, Ben





.script