Re: Re: RE: Re: undefined Symbol ...wxNotebookBase
"Achim Breunig" <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <001201c353ca$c03e3f70$0200a8c0@win2k01> |
Hello,
>> ...
>> extern "C" WXEXPORT
>> wxNotebook* wxNotebook_ctor()
>> {
>> #ifdef _WINDOWS
>> return new _Notebook();
>> #else
>> return new wxNotebook();
>> #endif
>> }
>> ...
>
>Very strange indeed. What compiler version are you using?
[Achim Breunig 2003/07/27 00:35] Output of gcc -v:
breuniga@linux:~> gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
Configured with:
../configure --enable-threads=posix --prefix=/usr --with-local-
prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir
=/us
r/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable
-lib
gcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-syste
m-zl
ib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)
>
>Have you tried changing the name '_Notebook' to something else like
'>wxnet_Notebook'?
[Achim Breunig 2003/07/27 00:35] Yes, now I tried this without success.
>
>If I remember correctly, names starting with an underscore ('_') are
>reserved for use by the compiler vendor, so should be avoided by
>application programmers. Perhaps this could be the source of the
>problem; and if it is, I'll go through the sources to remove the names
>starting with an '_'.
[Achim Breunig 2003/07/27 00:35] I think that is not necessary, because the
renaming did not change the result.
It is always the one error when starting an wx.NET Sample:
** (splitter.exe:7803): WARNING **: Failed to load library libwx-c.so
(wx-c): /u
sr/lib/libwx-c.so: undefined symbol: _ZNK14wxNotebookBase13DoGetBestSizeEv
I searched for this symbol with:
linux:/usr/lib # grep _ZNK14wxNotebookBase13DoGetBestSizeEv *
and get the result:
Binary file libwx-c.so matches
Binary file libwx_gtk2u-2.4.so matches
Binary file libwx_gtk2u-2.4.so.0 matches
Binary file libwx_gtk2u-2.4.so.0.0.0 matches
Binary file libwx_x11univu-2.4.so matches
Binary file libwx_x11univu-2.4.so.0 matches
Binary file libwx_x11univu-2.4.so.0.0.0 matches
So it exists int libwx-c.so and in libwx_gtk2u-2.4.so. So from my point of
view everything should work fine.
If I use
return new wxNotebook();
instead of
return new _Notobook();
the symbol DoGetBestSize does not exist in libwx-c.so and everything works
fine.
But I do absolutly not understand, why the examples does not run, because
the symbol exists in libwx_gtk2u-2.4.so
Best Regards
Achim Breunig
>
>Thank-you for discovering this.
>
>--
>Bryan Bulten
>http://www.bulten.ca/
>http://wxnet.sourceforge.net/
-------------------------------------------------------
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