From: Warren Young Date: July 1 2006 1:38am Subject: Re: Compling Simple.cpp List-Archive: http://lists.mysql.com/plusplus/5802 Message-Id: <44A5D20F.90405@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Steven Osborn wrote: > > I am entering: > > shell> g++ -I/usr/local/include/mysql++ simple.cpp Why aren't you using 'make'? (Read README.unix if you don't know what I'm talking about.) If you're just trying to learn how to build your own programs, I still say, use the Makefile. There isn't much "fat" in current MySQL++ Makefiles, so it will guide you quickly to the minimal build options. What you have above isn't even close to the minimum. You need to link against the C API library and the MySQL++ library, at the very least. I'd bet you need at least one more -I flag for MySQL, too.