Ok, that was just the answer I was expecting: I'm lacking C++ skills. Which may result
from heavy experience in PHP ^^
Thanks a lot! You've opened my eyes to some extent, and I'm going forward now...
>-----Ursprüngliche Nachricht-----
>Von: Warren Young [mailto:mysqlpp@stripped]
>Gesendet: Montag, 15. Dezember 2008 17:26
>An: MySQL++ Mailing List
>Betreff: Re: Compiling my own project
>
>Ebner.EJ.Johannes@stripped wrote:
>> const char* dbHost[];
>
>This does not do what you think it does. It declares an
>indeterminately-sized array of pointers to const char, not a pointer to
>const char, a.k.a. a C string.
>
>I could guide you to a C-like fix, but since you're making such a point
>of using C++, I have to ask, why aren't you using std::string?
>
>If you have more questions like this, please take it up in some C++
>programming forum.
>
>> mysqlpp::Connection dbConn(dbName, dbHost, dbUser, dbPass, dbPort);
>
>This also doesn't do what you think it does. You will learn what's
>wrong with this on a C++ programming forum, too.
>
>> catch(mysqlpp::ConnectionFailed connFailedEx)
>
>Always catch exceptions by const reference unless you have a specific
>reason not to.
>
>In addition to repeating the above suggestion, I suggest you get and
>read _Effective C++_, _More Effective C++_, and _Effective STL_, all by
>Scott Meyer.
>
>--
>MySQL++ Mailing List
>For list archives: http://lists.mysql.com/plusplus
>To unsubscribe:
>http://lists.mysql.com/plusplus?unsub=1
>