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. Saha | 21 Jul |
| • Re: Built MySQL++ on Linux, now what? | Warren Young | 21 Jul |
| • Re: Built MySQL++ on Linux, now what? | Amit k. Saha | 21 Jul |
| • Re: Built MySQL++ on Linux, now what? | Warren Young | 21 Jul |
| • Re: Built MySQL++ on Linux, now what? | Amit k. Saha | 22 Jul |
| • Re: Built MySQL++ on Linux, now what? | Warren Young | 22 Jul |
| • Re: Built MySQL++ on Linux, now what? | Amit k. Saha | 22 Jul |
| • Re: Built MySQL++ on Linux, now what? | Warren Young | 22 Jul |
| • Re: Built MySQL++ on Linux, now what? | Amit k. Saha | 22 Jul |
| • Re: Built MySQL++ on Linux, now what? | Warren Young | 22 Jul |
| • Re: Built MySQL++ on Linux, now what? | Amit k. Saha | 22 Jul |
| • Re: Built MySQL++ on Linux, now what? | Warren Young | 22 Jul |
| • Re: Built MySQL++ on Linux, now what? | Amit k. Saha | 23 Jul |
| • Re: Built MySQL++ on Linux, now what? | Warren Young | 23 Jul |
| • Re: Built MySQL++ on Linux, now what? | Amit k. Saha | 23 Jul |