On Mon, 01 Feb 2010 13:50:08 PST, Alexander <a...@rsu.ru> wrote:
> Ok. 
> I create own wx-config and said configure to use it. wx-config
> modification gives the following options:
> ./wx-config --libs
>  -L/usr/lib -R/usr/lib  -L/usr/X11R6/lib  -L/usr/openwin/lib 
>  -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8
>  -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8
>  -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8
-lwx_baseu-2.8
> 
> But these libraries are not enough...
> $ g++  -W -Wall   -o xchm  chmapp.o chmfile.o chmframe.o chmfshandler.o
> chminputstream.o chmfontdialog.o chmhtmlnotebook.o chmsearchpanel.o
> chmhtmlwindow.o chmfinddialog.o chmindexpanel.o chmlistctrl.o spantag.o
> hhcparser.o -L/usr/lib -R/usr/lib  -L/usr/X11R6/lib  -L/usr/openwin/lib 
> -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8
> -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8
> -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8

> -lchm 
> Undefined                       first referenced
>  symbol                             in file
> wxWindow::DoGetClientSize(int*, int*) constchmframe.o
> _wxHashTableBase2::DeleteNodes(unsigned int, _wxHashTable_NodeBase**,
void
> (*)(_wxHashTable_NodeBase*))chmfile.o
> wxWindow::SetLayoutDirection(wxLayoutDirection)      chmframe.o
> wxString::StartsWith(wchar_t const*, wxString*) constchmfile.o
> wxScrollHelper::EnableScrolling(bool, bool)chmhtmlwindow.o
> wxIsAbsolutePath(wxString const&)   chmapp.o
> wxWindowBase::MakeModal(bool)       chmframe.o
> wxControlContainer::wxControlContainer(wxWindow*)chmframe.o
> wxFileSystemHandler::GetLeftLocation(wxString const&)
constchmfshandler.o
> wxHtmlWindow::HTMLCoordsToWindow(wxHtmlCell*, wxPoint const&)
> constchmhtmlwindow.o
> wxGenericListCtrl::Refresh(bool, wxRect const*)chmlistctrl.o
> wxFileExists(wxString const&)       chmapp.o
> wxWindow::GetScrollThumb(int) const chmframe.o
> wxWindowBase::DoGetScreenPosition(int*, int*) constchmframe.o
> wxListBase::Init(wxKeyType)         chmframe.o
> wxClassInfo::Register()             spantag.o
> ...
> and so on.
> 
>> Hello.
>> I'm trying to compile xchm on Opensolaris-b129. I
>> have the following trouble.
>> `wx-config --libs ` is 
>> -mt -L/usr/lib -R/usr/lib -lCstd  -L/usr/X11R6/lib
>> -L/usr/openwin/lib  -lwx_gtk2u_richtext-2.8
>> -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8
>> -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8
>> -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8
>> -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
>>  
>> 
>> And nor "-mt", not "-lCstd" options are compatible
>> with gcc.... However, Sun Studio CC doesn't
>> understand one xchm source file (may be gcc'ism).
>> How can I force wx-config generate gcc-compatible
>>  options? Or is it better to patch xchm?

Hi Alexander,

g++ and Sun Studio do not have compatible C++ ABIs, so libraries produced
by one compiler cannot be used to link binaries produced by another. The
best solution (especially if the problem is a GCCism) is to patch xchm to
be compilable with Sun Studio so you can use the standard libraries. If
this is not possible, use SFEwxwidgets-gnu for a set of WxWidgets libraries
compiled with g++.

-Albert
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to