List Info

Thread: DB, Ubuntu and wxRichTextCtrl




DB, Ubuntu and wxRichTextCtrl
country flaguser name
United States
2007-10-05 04:48:51

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

__._,_.___
.

__,_._,___
Re: DB, Ubuntu and wxRichTextCtrl
country flaguser name
United States
2007-10-05 04:57:39

--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, "wxwidgetninja"
<m.nealon...> wrote:
&gt;
> Hi all,
>;
> Simple test -
>
> New Project,
> New Frame
&gt; Set NewFrame as Main Frame for App,
>; Drop wxRichTextCtrl onto Frame
&gt; Compile and Run
>
> I receive an error "*** mainframe.cpp(.text&#43;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?
&gt;
> 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.

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )