Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

odd compiler behavior when compiling CB

<< < (3/5) > >>

jmccay:
I am not compiling wxWidgets in Code:blocks.  I have a batch file that compiles wxWidgets at the commandline using the makefile.  wxWidgets appears to compile fine.  The last attempt with 3.4.2 got the warnings I just mentioned and these:


--- Code: ---Creating library file: devel\libwxscintilla.a
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text+0x763): In function `ZN11ScintillaWX9StartDragEv':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:230: undefined reference to `sci2wx(char const*, unsigned int)'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text+0x1ae8): In function `ZN11ScintillaWX15CopyToClipboardERK13SelectionText':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:467: undefined reference to `sci2wx(char const*, unsigned int)'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text+0x2520): In function `ZN11ScintillaWX7WndProcEjml':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:657: undefined reference to `Window::SetPositionRelative(PRectangle, Window)'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text+0x2552):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:657: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text+0x258b):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:657: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text+0x25a3):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:658: undefined reference to `Window::Show(bool)'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text+0x2617): In function `ZN11ScintillaWX7DoPaintEP4wxDC6wxRect':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:681: undefined reference to `Surface::Allocate()'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text+0x2677):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:683: undefined reference to `PRectangleFromwxRect(wxRect)'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text$_ZN6WindowC1ERKS_[Window::Window(Window const&)]+0x8): In function `ZN8wxDCBase17SetTextForegroundERK8wxColour':
C:/development/libraries/wxwidgets/wxWidgets26u/wx/include/wx/dc.h: undefined reference to `vtable for Window'
.objs\2.6\sdk\wxscintilla\src\ScintillaWX.o(.text$_ZN12wxSCICallTip7OnPaintER12wxPaintEvent[wxSCICallTip::OnPaint(wxPaintEvent&)]+0x76): In function `ZN15wxSCIDropTarget10OnDragOverEii12wxDragResult':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/ScintillaWX.cpp:54: undefined reference to `Surface::Allocate()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\AutoComplete.o(.text+0x7e): In function `ZNK6Window7CreatedEv':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/AutoComplete.cxx: undefined reference to `ListBox::Allocate()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\AutoComplete.o(.text+0x11e): In function `ZN12AutoCompleteC1Ev':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/AutoComplete.cxx:29: undefined reference to `ListBox::Allocate()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\AutoComplete.o(.text+0x15f): In function `ZN12AutoCompleteD2Ev':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/AutoComplete.cxx:36: undefined reference to `Window::Destroy()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\AutoComplete.o(.text+0x1bb): In function `ZN12AutoCompleteD1Ev':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/AutoComplete.cxx:36: undefined reference to `Window::Destroy()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\AutoComplete.o(.text+0x44d): In function `ZN12AutoComplete4ShowEb':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/AutoComplete.cxx:98: undefined reference to `Window::Show(bool)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\AutoComplete.o(.text+0x4c6): In function `ZN12AutoComplete6CancelEv':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/AutoComplete.cxx:106: undefined reference to `Window::Destroy()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x4f): In function `ZN10PRectangle8ContainsE5Point':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx: undefined reference to `Font::Font()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x45d):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x48d):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x4bd):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx: undefined reference to `Font::~Font()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x50f): In function `ZN7CallTipC1Ev':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:16: undefined reference to `Font::Font()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x8b4): In function `ZN7CallTipD2Ev':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:35: undefined reference to `Font::Release()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x8c2):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:36: undefined reference to `Window::Destroy()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x91b):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x938):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x955):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x972):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x98f):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Font::~Font()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x9bc):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Font::~Font()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xa1a): In function `ZN7CallTipD1Ev':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:35: undefined reference to `Font::Release()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xa28):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:36: undefined reference to `Window::Destroy()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xa81):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xa9e):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xabb):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xad8):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Window::~Window()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xaf5):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Font::~Font()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xb22):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:38: undefined reference to `Font::~Font()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xb5f): In function `ZN7CallTip20RefreshColourPaletteER7Paletteb':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:44: undefined reference to `Palette::WantFind(ColourPair&, bool)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xb7c):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:45: undefined reference to `Palette::WantFind(ColourPair&, bool)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xb99):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:46: undefined reference to `Palette::WantFind(ColourPair&, bool)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xbb6):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:47: undefined reference to `Palette::WantFind(ColourPair&, bool)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0xbd3):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:48: undefined reference to `Palette::WantFind(ColourPair&, bool)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x10b9): In function `ZN7CallTip13PaintContentsEP7Surfaceb':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:131: undefined reference to `Window::GetClientPosition()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x120d):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:155: undefined reference to `Platform::Maximum(int, int)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x1222):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:156: undefined reference to `Platform::Minimum(int, int)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x1242):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:158: undefined reference to `Platform::Maximum(int, int)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x1257):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:159: undefined reference to `Platform::Minimum(int, int)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x13c8):C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:175: undefined reference to `Platform::Maximum(int, int)'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x1401): In function `ZN7CallTip7PaintCTEP7Surface':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:183: undefined reference to `Window::GetClientPosition()'
.objs\2.6\sdk\wxscintilla\src\scintilla\src\CallTip.o(.text+0x16c7): In function `ZN7CallTip12CallTipStartEi5PointPKcS2_iiiR6Window':
C:/development/projects/codeblock/codeblocks/src/sdk/wxscintilla/src/scintilla/src/CallTip.cxx:222: undefined reference to `Surface::Allocate()'
Process terminated with status 1 (0 minutes, 16 seconds)
50 errors, 0 warnings

--- End code ---


a lot more errors (I compiled a second time without cleaning to just get there errors).  I am definately confused.  I didn't have this much trouble last time I compiled cb (before this go around).  It seems it is having a problem compiling the scintilla stuff.  What is the library gdi32?
jmccay

thomas:
These are now linker errors, missing references. That suggests you are mixing up different versions (either of wxWidgets, or Code::Blocks, or both).

Make sure that you have set the wx global user variable correctly (pointing to the right location where your wxWidgets monolithic build for Code::Blocks lives), and make sure that there are no additional include paths and linker paths in your global compiler settings which may break the build.
For example, if you have set the paths some old libraries and headers in your global compiler options, and these are searched first, then they will be used, which can generate such a mess.

jmccay:
I edited my previous post while you were replying apperently.   What is the gdi32 library?  Is it a part of the wxWidgets library?  I noticed this time it is messing up on the scintilla stuff (see previous post).  I figured it was a linking issue.  I wonder what is causing all the warnings though.

jmccay

thomas:
gdi32 is Windows GDI and is mandatory to compile Code::Blocks (wxWidgets uses it).

jmccay:
I just noticed something that might be the cause of a lot of my problems.  In the Build Options, directories tab, compilers tab of the code::block project is this directory:

$(#WX)\contrib\include

What is used from the contrib directory?  I don't have this in my wx libraries directory.  It is in my sandbox.  What is used from it, and do I need to compile anything from it before compiling CB?

Also, where is the initializer for SCNotification under the sdk\wxscintilla\src\scintilla\src?  Some of the warnings, and I think all the errors, I am getting are dealing with wxScintilla/scintilla.  Does wxScintilla/scintilla need to be build with wxWidgets?  Do you need files from under the stc directory?

jmccay

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version