List:MySQL++« Previous MessageNext Message »
From:Mickael Wolff Date:June 12 2013 1:19pm
Subject:Re: Help getting example to link - Ubuntu Raring
View as plain text  
On 06/12/2013 02:53 AM, Mark Douglas wrote:
> g++ -I/usr/include/mysql -I/usr/include/mysql++   -L/usr/lib -lmysqlpp
> -lmysqlclient_r  hello.cpp   -o hello

   Try to put -l options after the hello.o (symbol resolution is 
sequential). And that's not a MySQL++ problem. (actually, using this 
command line build a valid exe, I guess you're badly using the Makefile).

> My makefile:

   Are you using the Makefile to compile? If yes, where is the rule to 
build C++ object files?
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