RE: Re: undefined Symbol ...wxNotebookBase

"Achim Breunig" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Organization http://freemail.web.de/
Message-ID <[email protected]>
Hello together,

I'm a colleague of Patrick Wilhelm and supporting him on his work with wx.NET.
So I can reproduce his error on my System. We're using the latest version of wx.NET from 2003/07/14.

Today I could isolate the problem with the undefined Symbols of ...wxNotebookBase.
If I change the file notebook.cxx from 

  ...
  extern "C" WXEXPORT
  wxNotebook* wxNotebook_ctor()
  {
     return new _Notebook();
  }
  ...

to

  ...
  extern "C" WXEXPORT
  wxNotebook* wxNotebook_ctor()
  {
  #ifdef _WINDOWS
     return new _Notebook();
  #else
    return new wxNotebook();
  #endif
  }
  ...

I can run the samples without problems.

I do not understand why the line <return new _Notebook()>
s a problem, because it seems, that it has nothing to do with wxNotebookBase, but with this change everything works fine.

I tried to make changes in the class _Notebook and I removed everything than the class declaration:
  ...
  class _Notebook : public wxNotebook
  {
  }
  ...
  extern "C" WXEXPORT
  wxNotebook* wxNotebook_ctor()
  {
     return new _Notebook();
  }
  ...

But this did not work, too - the same error occured. Very crazy. The direct usage of wxNotebook works fine and using the derived class does not work. I have no idea why.
But perhaps it is a hint for someone of you, what's going wrong.


Kind Regards

Achim Breunig

privat:
[email protected]
Tel.: +33.3.88.86.10.40

business:
[email protected]
Tel.: +49.721.595.81.28





______________________________________________________________________________
ComputerBild (15-03) empfiehlt: Der beste Spam-Schutz ist bei
WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/?mc=021124



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.