List:MySQL++« Previous MessageNext Message »
From:Mark Douglas Date:June 12 2013 4:41pm
Subject:Re: Help getting example to link - Ubuntu Raring
View as plain text  
Thank you, that did it. Warren's suggestion was 95% there, but I needed
LDLIBS instead of LIBS.

And thanks Mickael for the reading, I'll definitely look at those pages to
get a better grasp on what's going on.

Appreciate the help all!


On Wed, Jun 12, 2013 at 10:30 AM, Jonathan Wakely <mysql@stripped> wrote:

> On 12 June 2013 17:16, Mark Douglas wrote:
> > Agh, correct! That made it work.
> >
> > So how do I make this work with a makefile? Or should I even bother?
>
> CXX := g++
> CPPFLAGS := -I/usr/include/mysql -I/usr/include/mysql++
> LDLIBS := -lmysqlpp -lmysqlclient_r
>
>
> That should be enough for "make hello" to do the right thing.
>
> You don't need the -L/usr/lib option because the linker always looks
> in /usr/lib anyway
>

Thread
Help getting example to link - Ubuntu RaringMark Douglas12 Jun
  • Re: Help getting example to link - Ubuntu RaringMickael Wolff12 Jun
  • Re: Help getting example to link - Ubuntu RaringWarren Young12 Jun
    • Re: Help getting example to link - Ubuntu RaringMark Douglas12 Jun
      • Re: Help getting example to link - Ubuntu RaringMickael Wolff12 Jun
      • Re: Help getting example to link - Ubuntu RaringJonathan Wakely12 Jun
        • Re: Help getting example to link - Ubuntu RaringMark Douglas12 Jun
          • Re: Help getting example to link - Ubuntu RaringJonathan Wakely12 Jun
            • Re: Help getting example to link - Ubuntu RaringJonathan Wakely12 Jun
            • Re: Help getting example to link - Ubuntu RaringMark Douglas12 Jun
              • Re: Help getting example to link - Ubuntu RaringJonathan Wakely12 Jun
              • Re: Help getting example to link - Ubuntu RaringWarren Young12 Jun