List:MySQL++« Previous MessageNext Message »
From:Ina J. Date:August 23 2011 10:06am
Subject:Re: MySQL++ not working with libstdc++6
View as plain text  
Okay. Thanks for the answer. Those compiler options are used in the whole
project so leaving it out is not a problem. All the objects will be compiled
without it.

-Ina

2011/8/23 Jonathan Wakely <mysql@stripped>

> On 23 August 2011 08:45, Ina J. wrote:
> > Found the problem! It was in my compile options.
> >
> > My makefile's compile section looked like this:
> >
> > #Compiler
> > CC=g++
> > #Compiler options
> > CCFLAGS=-std=c++98 -Wall -pedantic -Wextra -g -D_GLIBCXX_DEBUG -pthread
> >
> > #MySQL libs
> > MYSQL_INC = -I/usr/include/mysql -I/usr/include/mysql++
> > MYSQL_LIB = -Bsymbolic-functions -rdynamic -L/usr/lib/mysql++
> -lmysqlclient
> > -lmysqlpp
> >
> >
> > My makefile had an error in it and it didn't use the CCFLAGS at all at
> the
> > beginning of the project. I corrected it during the project and then the
> > problem occured. When I realized this, I started to cut down the options
> and
> > found the 'D_GLIBCXX_DEBUG' will trigger the valgrind. I removed it from
> my
> > makefile and everything works as it should now.
> >
> > Why does this option cause that kind of a problem?? Can't even remember
> > where I found the option and why did I add it after all.
>
> It turns on the libstdc++ debug mode, but you have to use it
> consistently for everything, you can't generally mix objects built
> with it and objects built without it.
>

Thread
MySQL++ not working with libstdc++6Ina J.19 Aug
  • Re: MySQL++ not working with libstdc++6Linda Messerschmidt19 Aug
    • Re: MySQL++ not working with libstdc++6Jonathan Wakely19 Aug
      • Re: MySQL++ not working with libstdc++6Ina J.21 Aug
        • Re: MySQL++ not working with libstdc++6Ina J.22 Aug
          • Re: MySQL++ not working with libstdc++6Adrian Cornish22 Aug
            • Re: MySQL++ not working with libstdc++6Warren Young22 Aug
              • Re: MySQL++ not working with libstdc++6Adrian Cornish22 Aug
                • Re: MySQL++ not working with libstdc++6Ina J.23 Aug
                  • Re: MySQL++ not working with libstdc++6Ina J.23 Aug
                    • Re: MySQL++ not working with libstdc++6Jonathan Wakely23 Aug
                      • Re: MySQL++ not working with libstdc++6Ina J.23 Aug