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?
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to