From: Warren Young Date: December 3 2007 2:04pm Subject: Re: Annoying question from a noob List-Archive: http://lists.mysql.com/plusplus/7224 Message-Id: <47540CD8.5040807@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Michael Sullivan wrote: > michael@camille examples $ g++ simple1.cpp -lz -lmysqlclient_r -lmysqlpp > -I/usr/local/include/mysql++/ -I/usr/include/mysql -o simple > /tmp/ccuuBkDx.o: In function `main': > simple1.cpp:(.text+0xbe): undefined reference to `connect_to_db(int, > char**, mysqlpp::Connection&, char const*)' > collect2: ld returned 1 exit status The MySQL++ examples weren't designed to be built by hand like this. The normal MySQL++ library build also builds the examples. If you're just trying to figure out how to build a MySQL++ program, you've already got it. The examples have other requirements that you needn't bother yourself with. You can figure it out by studying Makefile.simple, but really, it's just details specific to the MySQL++ examples.