errors while linking wxWidgets-2.6.3 Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
vsp
Knows some wx things
Knows some wx things
Posts: 35
Joined: Mon Feb 21, 2005 12:52 pm

errors while linking wxWidgets-2.6.3

Post by vsp » Thu Apr 20, 2006 4:26 pm

hi
i am using wxGTK-2.6.3 with my progam, the entire module is compiling well and while linkng i am getting the following errors [ sizer, wxComboBox, TextControl ]
please read all my errors and do me some favour and help me out its very urgent
thanks

FilePanel.o(.text+0x39c3): In function `MWCreateNodePanel::BuildPanelChoice()':
: undefined reference to `wxSizer::Add(int, int, int, int, int, wxObject*)'
FilePanel.o(.text+0x3b53): In function `MWCreateNodePanel::BuildPanelChoice()':
: undefined reference to `wxSizer::Add(int, int, int, int, int, wxObject*)'
FilePanel.o(.text+0x3bc7): more undefined references to `wxSizer::Add(int, int, int, int, int, wxObject*)' follow
FilePanel_1.o(.text+0x391b): In function `mwFilePanel_1::CreateWidgets()':
: undefined reference to `wxSizer::Add(wxSizer*, int, int, int, wxObject*)'

: undefined reference to `wxComboBox::wxComboBox(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&)'
MWCreatePanel.o(.text+0x3074): In function `mwElementPanel::CreateWidgets()':
: undefined reference to `wxComboBox::wxComboBox(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&)'
MWCreatePanel.o(.text+0x30f5): In function `mwElementPanel::CreateWidgets()':
: undefined reference to `wxComboBox::wxComboBox(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&)'

../LIB/libwxUtilities.a(TextControl.o)(.text+0x45): In function `MWCosineTextControl::wxCreateObject()': : undefined reference to `wxTextCtrl::wxTextCtrl()'
../LIB/libwxUtilities.a(TextCtrl.o)(.text+0x35): In function `MWNumericTextCtrl::MWNumericTextCtrl()':
: undefined reference to `wxTextCtrl::wxTextCtrl()' ../LIB/libwxUtilities.a(NumericTextCtrl.o)(.text+0xc5): In function `MWNumericTextCtrl::MWNumericTextCtrl()':
: undefined reference to `wxTextCtrl::wxTextCtrl()' ../LIB/libwxUtilities.a(StatusBarPanel.o)(.text+0x7eb): In function `MWStatusBarPanel::CreateSimpleStatusBar(wxString)':

DavidHart
Site Admin
Site Admin
Posts: 4006
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart » Thu Apr 20, 2006 5:21 pm

Hi,

It looks as though you aren't including enough headers in those files. Try adding #include "wx/wx.h", which covers most controls.

HTH,

David

vsp
Knows some wx things
Knows some wx things
Posts: 35
Joined: Mon Feb 21, 2005 12:52 pm

hi errors with wxGTK-2.6.3

Post by vsp » Fri Apr 21, 2006 4:40 am

hi

actually i posted the same problem with wxGTK-2.6.3 before and i am using amd 64bit Redhat linux, and as u said i have added wx/wx.h header in all my programs, still i am getting the same error. and the same code i was using in windows 32bit earlier with wxGTK-2.4.2, i there anythin conflict, and please help me out i am giving my errors again. thanks again - Rajesh

FilePanel.o(.text+0x39c3): In function `MWCreateNodePanel::BuildPanelChoice()':
: undefined reference to `wxSizer::Add(int, int, int, int, int, wxObject*)'
FilePanel.o(.text+0x3b53): In function `MWCreateNodePanel::BuildPanelChoice()':
: undefined reference to `wxSizer::Add(int, int, int, int, int, wxObject*)'
FilePanel.o(.text+0x3bc7): more undefined references to `wxSizer::Add(int, int, int, int, int, wxObject*)' follow
FilePanel_1.o(.text+0x391b): In function `mwFilePanel_1::CreateWidgets()':
: undefined reference to `wxSizer::Add(wxSizer*, int, int, int, wxObject*)'

: undefined reference to `wxComboBox::wxComboBox(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&)'
MWCreatePanel.o(.text+0x3074): In function `mwElementPanel::CreateWidgets()':
: undefined reference to `wxComboBox::wxComboBox(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&)'
MWCreatePanel.o(.text+0x30f5): In function `mwElementPanel::CreateWidgets()':
: undefined reference to `wxComboBox::wxComboBox(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&)'

../LIB/libwxUtilities.a(TextControl.o)(.text+0x45): In function `MWCosineTextControl::wxCreateObject()': : undefined reference to `wxTextCtrl::wxTextCtrl()'
../LIB/libwxUtilities.a(TextCtrl.o)(.text+0x35): In function `MWNumericTextCtrl::MWNumericTextCtrl()':
: undefined reference to `wxTextCtrl::wxTextCtrl()' ../LIB/libwxUtilities.a(NumericTextCtrl.o)(.text+0xc5): In function `MWNumericTextCtrl::MWNumericTextCtrl()':
: undefined reference to `wxTextCtrl::wxTextCtrl()' ../LIB/libwxUtilities.a(StatusBarPanel.o)(.text+0x7eb): In function `MWStatusBarPanel::CreateSimpleStatusBar(wxString)':

Post Reply