<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>62497</bug_id>
          
          <creation_ts>2004-09-01 04:43 0000</creation_ts>
          <short_desc>wxGTK-2.4.2-r2 applications do not compile with +unicode</short_desc>
          <delta_ts>2004-12-22 08:10:12 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>crusaderky@gmail.com</reporter>
          <assigned_to>wxwidgets@gentoo.org</assigned_to>
          <cc>samvimes@fastmail.fm</cc>

      

      
          <long_desc isprivate="0">
            <who>crusaderky@gmail.com</who>
            <bug_when>2004-09-01 04:43:45 0000</bug_when>
            <thetext>test.cpp:

#include &lt;wx/wx.h&gt;
class MyApp: public wxApp {
	virtual bool OnInit();
};

IMPLEMENT_APP(MyApp)

bool MyApp::OnInit() {
	wxString * str = new wxString(&quot;Hello world&quot;);
	return TRUE;
}

$ gcc -c `wx-config --cxxflags` -Wall test.cpp -o test.o

test.cpp: In member function `virtual bool MyApp::OnInit()&apos;:
test.cpp:12: error: call of overloaded `wxString(const char[12])&apos; is ambiguous
/usr/include/wx/string.h:323: error: candidates are: wxString::wxString(const
   wxWCharBuffer&amp;) &lt;near match&gt;
/usr/include/wx/string.h:306: error:
   wxString::wxString(wchar_t, unsigned int) &lt;near match&gt;
/usr/include/wx/string.h:291: error:                 wxString::wxString(const
   wxString&amp;) &lt;near match&gt;
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   &lt;near match&gt;

If I re-emerge wxGTK with USE=-unicode, it compiles smoothly.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pythonhead@gentoo.org</who>
            <bug_when>2004-09-01 14:32:10 0000</bug_when>
            <thetext>wx-config is a symlink to one of the three possible versions you could have emerged, wxconfig-2.4-config (gtk -gtk2), wxgtk2-2.4-config (gtk2) or wxgtk2u-2.4-config (gtk2 + unicode).

Please try:

$ gcc -c `wx-config2-2.4-config --cxxflags` -Wall test.cpp -o test.o

I will change the ebuild to symlink to one of the non-unicode ones so at least all apps will compile.

Let me know if that helps and I&apos;ll close this bug. Thanks.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pythonhead@gentoo.org</who>
            <bug_when>2004-10-09 14:44:27 0000</bug_when>
            <thetext>This shouldn&apos;t be a problem if you use the correct wc-config. Closing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nadams@ieee.org</who>
            <bug_when>2004-12-22 08:10:12 0000</bug_when>
            <thetext>Please make the ebuild install the appropriate version based on the user&apos;s USE flags. Making the end-user change use flags is very un-Gentoo. :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>