From: Warren Young Date: November 12 2010 7:03pm Subject: Re: Link error when building mysql++-3.1.0 with --as-needed List-Archive: http://lists.mysql.com/plusplus/9115 Message-Id: <5324F27F-1426-4766-BD3F-78EB4431B327@etr-usa.com> MIME-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Nov 12, 2010, at 2:36 AM, Andrew Ray wrote: > I included already the patch > to fix the problem with the missing #include from genv2.cpp > (I wonder why this isn't fixed in the source tarball?). Because I haven't yet bothered to release MySQL++ 3.1.1. There are other things I want to get into that release, not just a = single #include fix for the newest GCCs. > I think that if the bakefile could be modified to make this depend on > the main library, and cause the main library to be linked before it, > then everything would work fine. Try this patch. If it works, let me know and I'll check it in. Index: mysql++.bkl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- mysql++.bkl (revision 2679) +++ mysql++.bkl (working copy) @@ -225,6 +225,7 @@ =20 + mysqlpp mysqlpp_ssqls2parse ssx/parsev2.cpp . If it doesn't help, then the plan of attack I gave in my response to = Adrian is probably the right way to go.=