List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:November 12 2010 7:03pm
Subject:Re: Link error when building mysql++-3.1.0 with --as-needed
View as plain text  
On Nov 12, 2010, at 2:36 AM, Andrew Ray wrote:

> I included already the patch
> to fix the problem with the missing #include <string.h> 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
===================================================================
--- mysql++.bkl	(revision 2679)
+++ mysql++.bkl	(working copy)
@@ -225,6 +225,7 @@
 
   <!-- SSQLS v2 parser convenience library -->
   <lib id="ssqls2parse" template="programs">
+    <depends>mysqlpp</depends>
     <libname>mysqlpp_ssqls2parse</libname>
     <sources>ssx/parsev2.cpp</sources>
     <include>.</include>

If it doesn't help, then the plan of attack I gave in my response to Adrian is probably
the right way to go.
Thread
Link error when building mysql++-3.1.0 with --as-neededAndrew Ray12 Nov
  • Re: Link error when building mysql++-3.1.0 with --as-neededAdrian Cornish12 Nov
    • Re: Link error when building mysql++-3.1.0 with --as-neededAdrian Cornish12 Nov
    • Re: Link error when building mysql++-3.1.0 with --as-neededWarren Young12 Nov
      • Re: Link error when building mysql++-3.1.0 with --as-neededWarren Young12 Nov
        • Re: Link error when building mysql++-3.1.0 with --as-neededAdrian Cornish12 Nov
          • Re: Link error when building mysql++-3.1.0 with --as-neededWarren Young12 Nov
  • Re: Link error when building mysql++-3.1.0 with --as-neededWarren Young12 Nov