Author Topic: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?  (Read 8375 times)

Offline kenton

  • Single posting newcomer
  • *
  • Posts: 6
- SO: Windows
- Development Platform: Code::Blocks + wxFormBuilder

Following this guide http://www.freewebs.com/jojaqui/wxWidgetsCB.pdf
all work fine except the last step where is needed to give the rights libraries to the linker for use an addition wxWidgets component (wxPlotCtrl)

I've add all search directory (like the guide say) and linker library ...
but i fall in the following linker error (compile step work fine)

Code
||=== progetto_test, Debug ===|
obj\Debug\GUIFrame.o||In function `_ZN12wxStringData4LockEv':|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text+0xb18)||undefined reference to `__imp___ZN10wxPlotCtrl20SetAreaMouseFunctionE20wxPlotCtrlMouse_Typeb'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text+0xb33)||undefined reference to `__imp___ZN10wxPlotCtrl18SetAreaMouseMarkerE21wxPlotCtrlMarker_Type'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text+0xbab)||undefined reference to `__imp___ZN10wxPlotCtrl13SetXAxisLabelERK8wxString'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text+0xc53)||undefined reference to `__imp___ZN10wxPlotCtrl13SetYAxisLabelERK8wxString'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text+0xce2)||undefined reference to `__imp___ZN10wxPlotCtrl12SetPlotTitleERK8wxString'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text+0xeca)||undefined reference to `__imp___ZN10wxPlotCtrl14SetKeyPositionERK7wxPointb'|
obj\Debug\GUIFrame.o||In function `_ZN8GUIFrameC1EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':|
C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\GUIFrame.cpp|53|undefined reference to `__imp___ZN10wxPlotCtrl20SetAreaMouseFunctionE20wxPlotCtrlMouse_Typeb'|
C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\GUIFrame.cpp|54|undefined reference to `__imp___ZN10wxPlotCtrl18SetAreaMouseMarkerE21wxPlotCtrlMarker_Type'|
C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\GUIFrame.cpp|58|undefined reference to `__imp___ZN10wxPlotCtrl13SetXAxisLabelERK8wxString'|
C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\GUIFrame.cpp|61|undefined reference to `__imp___ZN10wxPlotCtrl13SetYAxisLabelERK8wxString'|
C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\GUIFrame.cpp|63|undefined reference to `__imp___ZN10wxPlotCtrl12SetPlotTitleERK8wxString'|
C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\GUIFrame.cpp|65|undefined reference to `__imp___ZN10wxPlotCtrl14SetKeyPositionERK7wxPointb'|
obj\Debug\GUIFrame.o||In function `_ZN12wxStringData4LockEv':|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl10SetShowKeyEb[wxPlotCtrl::SetShowKey(bool)]+0x28)||undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl16SetShowPlotTitleEb[wxPlotCtrl::SetShowPlotTitle(bool)]+0x5a)||undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl17SetShowYAxisLabelEb[wxPlotCtrl::SetShowYAxisLabel(bool)]+0x5a)||undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl12SetShowYAxisEb[wxPlotCtrl::SetShowYAxis(bool)]+0x5a)||undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl17SetShowXAxisLabelEb[wxPlotCtrl::SetShowXAxisLabel(bool)]+0x5a)||undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl12SetShowXAxisEb[wxPlotCtrl::SetShowXAxis(bool)]+0x5a)||undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl18SetCrossHairCursorEb[wxPlotCtrl::SetCrossHairCursor(bool)]+0x5e)||undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl11SetDrawGridEb[wxPlotCtrl::SetDrawGrid(bool)]+0x28)||undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl13SetDrawSplineEb[wxPlotCtrl::SetDrawSpline(bool)]+0x28)||undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl12SetDrawLinesEb[wxPlotCtrl::SetDrawLines(bool)]+0x28)||undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN10wxPlotCtrl14SetDrawSymbolsEb[wxPlotCtrl::SetDrawSymbols(bool)]+0x28)||undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'|
)]+0x4e)||undefined reference to `__imp___ZTV10wxPlotCtrl'|
)]+0x2e7)||undefined reference to `__imp___ZN10wxPlotCtrl4InitEv'|
)]+0x325)||undefined reference to `__imp___ZN10wxPlotCtrl6CreateEP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString'|
)]+0x525)||undefined reference to `__imp___ZN19wxArrayRect2DDoubleD1Ev'|
)]+0x62c)||undefined reference to `__imp___ZN17wxArrayPlotMarkerD1Ev'|
)]+0x657)||undefined reference to `__imp___ZN27wxArrayRangeDoubleSelectionD1Ev'|
)]+0x682)||undefined reference to `__imp___ZN24wxArrayRangeIntSelectionD1Ev'|
)]+0x6d6)||undefined reference to `__imp___ZN16wxArrayPlotCurveD1Ev'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN12wxPlotMarkerD1Ev[wxPlotMarker::~wxPlotMarker()]+0xa)||undefined reference to `__imp___ZTV12wxPlotMarker'|
C:\SourceCode\Libraries\wxWidgets2.8\include\wx\string.h:(.text$_ZN12wxPlotMarkerC1Ev[wxPlotMarker::wxPlotMarker()]+0x15)||undefined reference to `__imp___ZTV12wxPlotMarker'|
||=== Build finished: 33 errors, 0 warnings ===|
Addictions aren't necessary for me now but learn how to use an external library is important

Tanks for any suggestion
  Andrea C.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #1 on: November 21, 2008, 01:32:23 pm »
Did you add the path to "C:\SourceCode\Libraries\wxWidgets2.8\additions\lib\gcc_lib" to Linker search directories as shown on page 14 (PDF 15 of 18)?

Did you add the Libraries to Linker settings as shown on page 15 (PDF 16 of 18)?
libwxmsw28_plotctrl.a looks like the one that may be missing.
Note the name wxmsw28_plotctrl might work also.
Edit: The prefix wxmsw28 can be wxmsw28u or wxmsw28ud or just wxmsw28d varies per type of build.
But, should be the mostly be the same for each type of build(debug/release)

Standard Questions below; some of which I am getting answers from the directions.

Do you have the library for wxPlotCtrl on your computer?
What is the path to the library wxPlotCtrl?
What is the filename, include the file extension(.a ,.lib or etc.)  of the library wxPlotCtrl?
The directions show libwxmsw28_plotctrl.a

Where did you get your wxWidgets libraries and what type of libraries MultiLib of Monolthic?
I am guessing you are using wxPack build of wxWidgets; This means MultiLib most of the time.
I can not read Spanish? Or what language directions are in.


What is your compiler MinGW GCC, MSVC or what?
The directions are for MinGW so going to assume MinGW GCC
What is your compiler version 8.0 or 4.21 or what?

Tim S
« Last Edit: November 21, 2008, 02:13:35 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kenton

  • Single posting newcomer
  • *
  • Posts: 6
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #2 on: November 21, 2008, 03:25:53 pm »
Tim ... thanks a lot
u r patient asking me all that's things
i try to be more explicative

Quote
Did you add the path to "C:\SourceCode\Libraries\wxWidgets2.8\additions\lib\gcc_lib" to Linker search directories as shown on page 14 (PDF 15 of 18)?
yes

Quote
Did you add the Libraries to Linker settings as shown on page 15 (PDF 16 of 18)?
yes

Quote
libwxmsw28_plotctrl.a looks like the one that may be missing.
Note the name wxmsw28_plotctrl might work also.
i've put this one: libwxmsw28ud_plotctrl.a
(unicode-debug not?)

Quote
Standard Questions below; some of which I am getting answers from the directions.

Quote
Do you have the library for wxPlotCtrl on your computer?
yes ... wxPack installation

Quote
What is the path to the library wxPlotCtrl?
exactly the path u've entered up ... "C:\SourceCode\Libraries\wxWidgets2.8\additions\lib\gcc_lib"

Quote
What is the filename, include the file extension(.a ,.lib or etc.)  of the library wxPlotCtrl?
-> "libwxmsw28ud_plotctrl.a"

Quote
The directions show libwxmsw28_plotctrl.a
i've add this one too for test ... "libwxmsw28_plotctrl.a" but give the same error

Quote
Where did you get your wxWidgets libraries and what type of libraries MultiLib of Monolthic?
all comes from wxPack ... I've choose in the wizard the Monolitic but i've all precompiled types installed

Quote
I am guessing you are using wxPack build of wxWidgets;
yep :)

Quote
This means MultiLib most of the time.
are all installed yes ... unicode and not ... debug and release ... (4 types)

Quote
I can not read Spanish? Or what language directions are in.
It's spanish yep ... i'm italian ... but i know spanish too ...
that's because the wxFormBuilder developer is Espanol i think ...


Quote
What is your compiler MinGW GCC, MSVC or what?
MinGW GCC installed with the code::blocks pakage

Quote
The directions are for MinGW so going to assume MinGW GCC
smart!

Quote
What is your compiler version 8.0 or 4.21 or what?
code::blocks 8.02
and
Code
This folder contains the following components:

gcc-core-3.4.5-20060117-1-vista.tar.gz
gcc-g++-3.4.5-20060117-1-vista.tar.gz
mingw-runtime-3.14.tar.gz
mingw32-make-3.81-2.tar.gz
mingw-utils-0.3.tar.gz
w32api-3.11.tar.gz
binutils-2.18.50-20080109.tar.gz
gdb-6.7.50.20071127-mingw.tar.bz2
like code::blocks + mingw installation


Andrea C.

P.S. u can watch the directions in this video ...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #3 on: November 22, 2008, 04:09:08 am »
Please turn on Full Compiler Logging.
Directions are here
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Post the Build the "Build Log"; I do not need a rebuild log just the linker command it fails on and a few errors.

Edit: Yes, libwxmsw28ud_plotctrl.a is the Unicode Debug Library.

Tim S
« Last Edit: November 22, 2008, 04:11:47 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kenton

  • Single posting newcomer
  • *
  • Posts: 6
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #4 on: November 22, 2008, 12:18:52 pm »
uuu fine!

this is the build log now ...
Code
-------------- Build: Debug in progetto_test ---------------

mingw32-g++.exe -Wall -pipe -mthreads  -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -g    -IC:\SourceCode\Libraries\wxWidgets2.8\include -IC:\SourceCode\Libraries\wxWidgets2.8\contrib\include -IC:\SourceCode\Libraries\wxWidgets2.8\additions\include -IC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll\mswu  -c "C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\progetto_testApp.cpp" -o obj\Debug\progetto_testApp.o
mingw32-g++.exe -Wall -pipe -mthreads  -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -g    -IC:\SourceCode\Libraries\wxWidgets2.8\include -IC:\SourceCode\Libraries\wxWidgets2.8\contrib\include -IC:\SourceCode\Libraries\wxWidgets2.8\additions\include -IC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll\mswu  -c "C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\progetto_testMain.cpp" -o obj\Debug\progetto_testMain.o
windres.exe -i C:\DOCUME~1\UTENTE\DOCUME~1\Andrea\PROGRA~1\PROGET~1\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\SourceCode\Libraries\wxWidgets2.8\include -IC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll\mswu
mingw32-g++.exe -Wall -pipe -mthreads  -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -g    -IC:\SourceCode\Libraries\wxWidgets2.8\include -IC:\SourceCode\Libraries\wxWidgets2.8\contrib\include -IC:\SourceCode\Libraries\wxWidgets2.8\additions\include -IC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll\mswu  -c "C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\GUIFrame.cpp" -o obj\Debug\GUIFrame.o
mingw32-g++.exe -LC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll -LC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib -LC:\SourceCode\Libraries\wxWidgets2.8\additions\lib\gcc_lib -LC:\SourceCode\Libraries\wxWidgets2.8\additions\lib\gcc_dll  -o bin\Debug\progetto_test.exe obj\Debug\progetto_testApp.o obj\Debug\progetto_testMain.o obj\Debug\GUIFrame.o  obj\Debug\resource.res   -lwxmsw28u -lwxpngd -lwxjpegd -lwxtiffd -lwxzlibd -lwxmsw28ud_awx -lwxmsw28ud_plot -lwxmsw28ud_plotctrl -lwxmsw28ud_things  -mwindows
obj\Debug\GUIFrame.o: In function `_ZN12wxStringData4LockEv':
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text+0xb18): undefined reference to `__imp___ZN10wxPlotCtrl20SetAreaMouseFunctionE20wxPlotCtrlMouse_Typeb'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text+0xb33): undefined reference to `__imp___ZN10wxPlotCtrl18SetAreaMouseMarkerE21wxPlotCtrlMarker_Type'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text+0xbab): undefined reference to `__imp___ZN10wxPlotCtrl13SetXAxisLabelERK8wxString'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text+0xc53): undefined reference to `__imp___ZN10wxPlotCtrl13SetYAxisLabelERK8wxString'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text+0xce2): undefined reference to `__imp___ZN10wxPlotCtrl12SetPlotTitleERK8wxString'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text+0xeca): undefined reference to `__imp___ZN10wxPlotCtrl14SetKeyPositionERK7wxPointb'
obj\Debug\GUIFrame.o: In function `_ZN8GUIFrameC1EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Documents and Settings/UTENTE/Documenti/Andrea/programmazione/progetto_test/GUIFrame.cpp:53: undefined reference to `__imp___ZN10wxPlotCtrl20SetAreaMouseFunctionE20wxPlotCtrlMouse_Typeb'
C:/Documents and Settings/UTENTE/Documenti/Andrea/programmazione/progetto_test/GUIFrame.cpp:54: undefined reference to `__imp___ZN10wxPlotCtrl18SetAreaMouseMarkerE21wxPlotCtrlMarker_Type'
C:/Documents and Settings/UTENTE/Documenti/Andrea/programmazione/progetto_test/GUIFrame.cpp:58: undefined reference to `__imp___ZN10wxPlotCtrl13SetXAxisLabelERK8wxString'
C:/Documents and Settings/UTENTE/Documenti/Andrea/programmazione/progetto_test/GUIFrame.cpp:61: undefined reference to `__imp___ZN10wxPlotCtrl13SetYAxisLabelERK8wxString'
C:/Documents and Settings/UTENTE/Documenti/Andrea/programmazione/progetto_test/GUIFrame.cpp:63: undefined reference to `__imp___ZN10wxPlotCtrl12SetPlotTitleERK8wxString'
C:/Documents and Settings/UTENTE/Documenti/Andrea/programmazione/progetto_test/GUIFrame.cpp:65: undefined reference to `__imp___ZN10wxPlotCtrl14SetKeyPositionERK7wxPointb'
obj\Debug\GUIFrame.o: In function `_ZN12wxStringData4LockEv':
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl10SetShowKeyEb[wxPlotCtrl::SetShowKey(bool)]+0x28): undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl16SetShowPlotTitleEb[wxPlotCtrl::SetShowPlotTitle(bool)]+0x5a): undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl17SetShowYAxisLabelEb[wxPlotCtrl::SetShowYAxisLabel(bool)]+0x5a): undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl12SetShowYAxisEb[wxPlotCtrl::SetShowYAxis(bool)]+0x5a): undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl17SetShowXAxisLabelEb[wxPlotCtrl::SetShowXAxisLabel(bool)]+0x5a): undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl12SetShowXAxisEb[wxPlotCtrl::SetShowXAxis(bool)]+0x5a): undefined reference to `__imp___ZN10wxPlotCtrl6DoSizeERK6wxRectb'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl18SetCrossHairCursorEb[wxPlotCtrl::SetCrossHairCursor(bool)]+0x5e): undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl11SetDrawGridEb[wxPlotCtrl::SetDrawGrid(bool)]+0x28): undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl13SetDrawSplineEb[wxPlotCtrl::SetDrawSpline(bool)]+0x28): undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl12SetDrawLinesEb[wxPlotCtrl::SetDrawLines(bool)]+0x28): undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrl14SetDrawSymbolsEb[wxPlotCtrl::SetDrawSymbols(bool)]+0x28): undefined reference to `__imp___ZN10wxPlotCtrl6RedrawEi'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrlC1EP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString[wxPlotCtrl::wxPlotCtrl(wxWindow*, int, wxPoint const&, wxSize const&, wxPlotCtrlAxis_Type, wxString const&)]+0x4e): undefined reference to `__imp___ZTV10wxPlotCtrl'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrlC1EP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString[wxPlotCtrl::wxPlotCtrl(wxWindow*, int, wxPoint const&, wxSize const&, wxPlotCtrlAxis_Type, wxString const&)]+0x2e7): undefined reference to `__imp___ZN10wxPlotCtrl4InitEv'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrlC1EP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString[wxPlotCtrl::wxPlotCtrl(wxWindow*, int, wxPoint const&, wxSize const&, wxPlotCtrlAxis_Type, wxString const&)]+0x325): undefined reference to `__imp___ZN10wxPlotCtrl6CreateEP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrlC1EP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString[wxPlotCtrl::wxPlotCtrl(wxWindow*, int, wxPoint const&, wxSize const&, wxPlotCtrlAxis_Type, wxString const&)]+0x525): undefined reference to `__imp___ZN19wxArrayRect2DDoubleD1Ev'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrlC1EP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString[wxPlotCtrl::wxPlotCtrl(wxWindow*, int, wxPoint const&, wxSize const&, wxPlotCtrlAxis_Type, wxString const&)]+0x62c): undefined reference to `__imp___ZN17wxArrayPlotMarkerD1Ev'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrlC1EP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString[wxPlotCtrl::wxPlotCtrl(wxWindow*, int, wxPoint const&, wxSize const&, wxPlotCtrlAxis_Type, wxString const&)]+0x657): undefined reference to `__imp___ZN27wxArrayRangeDoubleSelectionD1Ev'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrlC1EP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString[wxPlotCtrl::wxPlotCtrl(wxWindow*, int, wxPoint const&, wxSize const&, wxPlotCtrlAxis_Type, wxString const&)]+0x682): undefined reference to `__imp___ZN24wxArrayRangeIntSelectionD1Ev'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN10wxPlotCtrlC1EP8wxWindowiRK7wxPointRK6wxSize19wxPlotCtrlAxis_TypeRK8wxString[wxPlotCtrl::wxPlotCtrl(wxWindow*, int, wxPoint const&, wxSize const&, wxPlotCtrlAxis_Type, wxString const&)]+0x6d6): undefined reference to `__imp___ZN16wxArrayPlotCurveD1Ev'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN12wxPlotMarkerD1Ev[wxPlotMarker::~wxPlotMarker()]+0xa): undefined reference to `__imp___ZTV12wxPlotMarker'
C:/SourceCode/Libraries/wxWidgets2.8/include/wx/string.h:(.text$_ZN12wxPlotMarkerC1Ev[wxPlotMarker::wxPlotMarker()]+0x15): undefined reference to `__imp___ZTV12wxPlotMarker'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 9 seconds)
33 errors, 0 warnings

this is the code source if can help

Andrea C.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #5 on: November 22, 2008, 04:54:37 pm »
You are using both DLL and Static Builds of wxWidgets libs; this will not normally work.

In other words, I see both gcc_lib and gcc_dll in the link command.

Page 14 shows that both are gcc_lib.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kenton

  • Single posting newcomer
  • *
  • Posts: 6
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #6 on: November 23, 2008, 12:17:38 am »
right!
now we are a step forward i think but my error log become huge !!  :shock:

log with both gcc_lib:

this is the new log

in the other choise ... with both gcc_dll the program compile and link fine ...
but when i go to execute it crash at startup with this build log:

Code
Checking for existence: C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\bin\Debug\progetto_test.exe
Executing: "C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\bin\Debug\progetto_test.exe"  (in C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\.)
Process terminated with status -1073741819 (0 minutes, 8 seconds)

if i start prog_test.exe from windows directly it says to me that it's impossible to find wxmsw28ud_plotctrl.dll
Infact there is only "libwxmsw28ud_plotctrl.a" but not .dll


Andrea C.
« Last Edit: November 23, 2008, 12:36:29 am by kenton »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #7 on: November 23, 2008, 01:08:23 am »
right!
now we are a step forward i think but my error log become huge !!  :shock:

log with both gcc_lib:

this is the new log

in the other choise ... with both gcc_dll the program compile and link fine ...
but when i go to execute it crash at startup with this build log:

Code
Checking for existence: C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\bin\Debug\progetto_test.exe
Executing: "C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\bin\Debug\progetto_test.exe"  (in C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\.)
Process terminated with status -1073741819 (0 minutes, 8 seconds)

if i start prog_test.exe from windows directly it says to me that it's impossible to find wxmsw28ud_plotctrl.dll
Infact there is only "libwxmsw28ud_plotctrl.a" but not .dll


Andrea C.


The folder C:\SourceCode\Libraries\wxWidgets2.8\additions\lib\gcc_dll has/should have wxmsw28ud_plotctrl_gcc.dll in it.

Please copy wxmsw28ud_plotctrl_gcc.dll to the folder holding the exe for the DLL build and see if run-time error goes away or changes.

Please attach the CB project of the build you wish to work on fixing; pick either DLL or Static build and mention it in post. Ijust downloaded you prior attachment will fix that.

The Log did not show which include directory was used it MUST match the DLL or Static(Lib) build.

I am testing wxPack 2.8.8.04; it seems to not work with the CB 8.02 version.
What Code::Blocks version are you using?
And what wxPack are you using?

I am going to try the Nightly Code::Blocks with wxPack to determine which is at fault for failing
with an Static Multilib build. It is starting to look like wxPack fault, but still need to do more testing.

Tim S
« Last Edit: November 23, 2008, 03:43:18 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #8 on: November 23, 2008, 05:23:58 am »
I gave up fixing your project file; started from scratch.

I used wxPack_v2.8.7.03.exe for my testing.

Tim S

Attached my project file tested with your source code.


[attachment deleted by admin]
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #9 on: November 23, 2008, 05:27:53 am »
FYI:

When Starting an wxWidgets project you must take care of the type of wxWidget build being used.

The main types/subtypes of wxWidgets builds to use are:
  Unicode or ANSI
  Debug or Release
  MultiLib or Monolithic
  Static or DLL(Dynamic)

You had the library names for Monolithic in your project file, but wxPack does better with MultiLib type builds.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kenton

  • Single posting newcomer
  • *
  • Posts: 6
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #10 on: November 23, 2008, 11:46:07 pm »
Quote
The folder C:\SourceCode\Libraries\wxWidgets2.8\additions\lib\gcc_dll has/should have wxmsw28ud_plotctrl_gcc.dll in it.

yes i've it there

Quote
Please copy wxmsw28ud_plotctrl_gcc.dll to the folder holding the exe for the DLL build and see if run-time error goes away or changes.

with a working .exe and all dll in the same folder yep it works now ...

Quote
I am testing wxPack 2.8.8.04; it seems to not work with the CB 8.02 version.
What Code::Blocks version are you using?

8.02

Quote
And what wxPack are you using?

2.8.8.04

Quote
I am going to try the Nightly Code::Blocks with wxPack to determine which is at fault for failing
with an Static Multilib build. It is starting to look like wxPack fault, but still need to do more testing.

kk



Quote
I gave up fixing your project file; started from scratch.
I used wxPack_v2.8.7.03.exe for my testing.

wooow   :D now with your .cbp the DLL Multilib compile link and run fine!!

(with this warning only ...)
Code
Info: resolving wxAppConsole::ms_appInstance        by linking to __imp___ZN12wxAppConsole14ms_appInstanceE (auto-import)
Info: resolving wxStringBase::npos       by linking to __imp___ZN12wxStringBase4nposE (auto-import)
Info: resolving wxAppConsole::ms_appInitFn        by linking to __imp___ZN12wxAppConsole12ms_appInitFnE (auto-import)
Info: resolving _wxDefaultPosition by linking to __imp__wxDefaultPosition (auto-import)
Info: resolving _wxEmptyString by linking to __imp__wxEmptyString (auto-import)
Info: resolving _wxFrameNameStr by linking to __imp__wxFrameNameStr (auto-import)
Info: resolving _wxDefaultSize by linking to __imp__wxDefaultSize (auto-import)
Info: resolving _wxStatusLineNameStr by linking to __imp__wxStatusLineNameStr (auto-import)
Info: resolving _wxEVT_CLOSE_WINDOW by linking to __imp__wxEVT_CLOSE_WINDOW (auto-import)
Info: resolving _wxEVT_COMMAND_MENU_SELECTED by linking to __imp__wxEVT_COMMAND_MENU_SELECTED (auto-import)
Info: resolving vtable for wxPlotCtrlby linking to __imp___ZTV10wxPlotCtrl (auto-import)
Info: resolving vtable for wxPlotMarkerby linking to __imp___ZTV12wxPlotMarker (auto-import)
Info: resolving vtable for wxObjectby linking to __imp___ZTV8wxObject (auto-import)
Info: resolving vtable for wxBitmapby linking to __imp___ZTV8wxBitmap (auto-import)
Info: resolving vtable for wxGDIImageby linking to __imp___ZTV10wxGDIImage (auto-import)
Info: resolving vtable for wxGDIObjectby linking to __imp___ZTV11wxGDIObject (auto-import)
Info: resolving vtable for wxColourby linking to __imp___ZTV8wxColour (auto-import)
Info: resolving vtable for wxColourBaseby linking to __imp___ZTV12wxColourBase (auto-import)
Info: resolving vtable for wxFontby linking to __imp___ZTV6wxFont (auto-import)
Info: resolving vtable for wxFontBaseby linking to __imp___ZTV10wxFontBase (auto-import)
Info: resolving vtable for wxWindowby linking to __imp___ZTV8wxWindow (auto-import)
Info: resolving vtable for wxMenuby linking to __imp___ZTV6wxMenu (auto-import)
Info: resolving vtable for wxMenuBaseby linking to __imp___ZTV10wxMenuBase (auto-import)
Info: resolving vtable for wxListBaseby linking to __imp___ZTV10wxListBase (auto-import)
Info: resolving vtable for wxFrameby linking to __imp___ZTV7wxFrame (auto-import)
Info: resolving vtable for wxwxMenuItemListNodeby linking to __imp___ZTV20wxwxMenuItemListNode (auto-import)
C:\Programmi\CodeBlocks\MinGW\bin\ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
Output size is 2.41 MB
Process terminated with status 0 (0 minutes, 10 seconds)
0 errors, 1 warnings

the .exe alone with all .dll files needed in the same folder work too

But the Static build target don't work like you have told me ...

i'm downloading the wxPack 2.8.7.03 ...



I've a question now ...
if i've to give a working .exe program to some friend what's the better build type?
For example this very simple .exe that we are troubleshooting is 2.5 Megs!!!
And if i append in a zip all .dll i think it will be 30/40 megs ... too much
This development tools (CB+WxWidgets) can give me a normal tiny release of my projects?



You are spending many time and energies to help me Tim ...
I don't know what say to you for all this help ...
For sure i will try to help other people here ...
hoping to become every day better in this kind of programming
Regroup those teacing in a mini base tutorial where first time users
like me will found a more explicative way to start can be helpfull?
This forum tread can work itself like a guide ...
Traslate in english the spanish guide? ... This can help?

Andrea C.
« Last Edit: November 23, 2008, 11:50:29 pm by kenton »

Offline kenton

  • Single posting newcomer
  • *
  • Posts: 6
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #11 on: November 24, 2008, 12:06:08 am »
YEEEEEE  :D
now with wxPack 2.8.7.03 static build work too with 0 warning!!

the file now waight 27 Megs but is standalone right?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: [Win + C::B + WxFB] A mistake in the libraries gived to the linker?
« Reply #12 on: November 24, 2008, 12:19:18 am »
the file now waight 27 Megs but is standalone right?

Yes, the static build should work as standalone.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org