--- In anthemion-devtools%40yahoogroups.com">anthemion-devtools
yahoogroups.com, "wxwidgetninja"
<m.nealon
...> wrote:
>
> Hi all,
>
> Simple test -
>
> New Project,
> New Frame
> Set NewFrame as Main Frame for App,
> Drop wxRichTextCtrl onto Frame
> Compile and Run
>
> I receive an error "*** mainframe.cpp(.text+0x393):undefined
> reference to 'wxRichTextCtrl::wxRichTextCtrl(wxWindow*, int, wxString
> const&, wxPoint const&, wxSize const&, long, wxValidator const&,
> wxString const&)'"
>
> I assume I haven't done anything stupid when building wxWidgets (I
> used DB to build it, but am unsure if I needed to pass any further
> parameters to the build.
>
> I must have done something stupid, but does anyone have any idea what?
>
> Best
> Mal
>
Hi, Mal!
No, you haven't done anything stupid!
There's a glitch with rich
text in early 2.8 re: how wx-config works. You can either upgrade to
the latest 2.8 or just include the lib in configurations in DB. If you
add it in DB, you'll have to put it _before_ %AUTO%, i.e.:
/usr/share/lib/<whatever>/librichtext<whatever>.a %AUTO%
If you put it after %AUTO%, it confuses the heck out of wx-config. It
expects to be alone on the line, so it swallows everything on the line
after it as arguments.
HTH:
thx,
Dave S.
.