mysql.h included by the followling files included by #include <mysql++/mysql++.h> is in a different spot: mysql++/defs.h mysql++/type_info.h mysql++/coldata.h mysql++/manip.h mysql++/result.h mysql++/connection.h mysql++/query.h Reproducible: Always Steps to Reproduce: 1. emerge mysql++ 2. create a c++ <file> including mysql++/mysql++.h 3. g++ <file> Actual Results: In file included from /usr/include/mysql++/mysql++.h:18, from example.cpp:1: /usr/include/mysql++/query.h:11:19: mysql.h: No such file or directory Repeated for each occurance. Expected Results: From the list of files above in "Details" you should edit each file and change the line #include <mysql.h> to #include <mysql/mysql.h> Although I don't think this is relevent at all, but I'm new to bugzilla. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 21 2005, 22:08:11)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.1/gentoo-portage" USE="x86 X aalib aim alsa apm arts avi bash-completion berkdb bitmap-fonts cddb cdr crypt cups curl directfb divx4linux dvd dvdr dvdread emboss encode esd fam flac foomaticdb fortran gdbm gif glut gpm gtk2 imagemagick imlib java jpeg kde kdeenablefinal libg++ libwww lm_sensors mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nfs nls nptl nvidia ogg oggvorbis openal opengl oss pam pdflib perl png python qt quicktime readline samba sdl spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vim-with-x vorbis wma xine xinerama xml2 xmms xv yahoo zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
you are not using the correct g++ flags. you should be specifying -I/usr/include/mysql (as returned by mysql_config -- include).