List:MySQL++« Previous MessageNext Message »
From:Amit k. Saha Date:July 21 2008 12:35pm
Subject:Re: Built MySQL++ on Linux, now what?
View as plain text  
On Mon, Jul 21, 2008 at 5:50 PM, Warren Young <mysqlpp@stripped> wrote:
> Amit k. Saha wrote:
>>
>> But, I get a bunch of errors:
>
> You would have found enlightenment in the mailing list archives, if you'd
> have searched for terms found in these messages.
>
>> mysql_version.h: No such file or directory
>
> You're not giving the -I flag for the MySQL C API headers.

All is fine now with:

 g++ -I /home/as227057/mysql-linux/include/mysql -I
/home/as227057/mysqlpp-install/include/mysql++ -I
/home/as227057/dev-tools/mysql++-3.0.4/examples/ -L
/home/as227057/mysqlpp-install/lib/ -L
/home/as227057/mysql-linux/lib/mysql simple1.cpp -lmysqlpp
-lmysqlclient

except:

simple1.cpp:(.text+0xd4): undefined reference to
`parse_command_line(int, char**, char const**, char const**, char
const**, char const**, char const*)'
collect2: ld returned 1 exit status

If I comment out the function, the process completes successfully.


-- 
Amit Kumar Saha
http://blogs.sun.com/amitsaha/
http://amitksaha.blogspot.com
Skype: amitkumarsaha
Thread
Built MySQL++ on Linux, now what?Amit k. Saha21 Jul
  • Re: Built MySQL++ on Linux, now what?Warren Young21 Jul
    • Re: Built MySQL++ on Linux, now what?Amit k. Saha21 Jul
      • Re: Built MySQL++ on Linux, now what?Warren Young21 Jul
        • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
          • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
            • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
              • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
                  • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                    • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
                      • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                        • Re: Built MySQL++ on Linux, now what?Amit k. Saha23 Jul
                          • Re: Built MySQL++ on Linux, now what?Warren Young23 Jul
                            • Re: Built MySQL++ on Linux, now what?Amit k. Saha23 Jul