List:MySQL++« Previous MessageNext Message »
From:Verfranc Raganas Date:January 16 2006 4:40pm
Subject:Re: free(): invalid pointer
View as plain text  
I'm using Fedora Core 4 with MySQL 4.1.16.  I used the mysql++ 2 rpm
suggested/implied in the online mysql++ document. I compiled and run
resetdb
successfully.  It created the sample database.  Then I compiled
simple1.cpp, but when I run it, it dumps this:

[root@localhost examples]# ./simple1

Item                 Num       Weight    Price     Date

Nürnberger Brats    92        1.5       8.79      2005-03-10

Pickle Relish        87        1.5       1.75      1998-09-04

Hot Mustard          75        0.95      0.97      1998-05-25

Hotdog Buns          65        1.1       1.1       1998-04-23

*** glibc detected *** ./simple1: free(): invalid pointer: 0x08947ab0 ***

So i used the mysql++ source and recompiled it in Fedora Core 4 with
GCC 4.  Then I no longer have the invalid pointer error.  Maybe the
rpm was built using GCC 3+ and will have issues under GCC 4.



On 1/16/06, Warren Young <mysqlpp@stripped> wrote:
> Verfranc Raganas wrote:
> > I have solved this problem by compiling
> > http://tangentsoft.net/mysql++/releases/mysql++-2.0.7.tar.gz in Fedora
> > Core 4.
>
> What were you doing before?
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1
>
>
Thread
free(): invalid pointerVan11 Jan
Re: free(): invalid pointerVerfranc Raganas16 Jan
  • Re: free(): invalid pointerWarren Young16 Jan
    • Re: free(): invalid pointerVerfranc Raganas16 Jan