Building wxWidgets with nmake as monolithic DLL without Scintilla support  [SOLVED]

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 1755
Joined: Sun Jan 03, 2010 5:45 pm

Building wxWidgets with nmake as monolithic DLL without Scintilla support

Postby PB » Fri Jan 26, 2018 7:39 pm

I attempted to custom-build wxWidgets monolithic DLL with certain features off, using the provided MSVC makefile. The build surprisingly failed due to linker failing to find Scintilla-related functions. wxWidgets were freshly checked-out master, compiler was MS Visual C++ Express 2015 Update 3.

The command line

Code: Select all

cd %WXWIN%\build\MSW

call "%vs140comntools%..\..\vc\vcvarsall.bat" x86

nmake -f makefile.vc BUILD=debug SHARED=1 MONOLITHIC=1 COMPILER_PREFIX=vc14 USE_AUI=0 USE_MEDIA=0 USE_OPENGL=0 USE_QA=0 USE_RIBBON=0 USE_RICHTEXT=0 USE_STC=0 USE_WEBVIEW=0 USE_XRC=0 CFG=-monolithic


Build errors

Code: Select all

 link /DLL /NOLOGO /OUT:..\..\lib\vc14_dll-monolithic\wxmsw311ud_vc_custom.dll  /DEBUG /pdb:"..\..\lib\vc14_dll-monolithic\wxmsw311ud_vc_custom.pdb"    /LIBPATH:..\..\lib\vc14_dll-monolithic   @C:\Users\Petr\AppData\Local\Temp\nmC495.tmp
   Creating library ..\..\lib\vc14_dll-monolithic\wxmsw31ud.lib and object ..\..\lib\vc14_dll-monolithic\wxmsw31ud.exp
monodll_stc.obj : error LNK2019: unresolved external symbol _Scintilla_LinkLexers referenced in function "public: bool __thiscall wxStyledTextCtrl::Create(class wxWindow *,int,class wxPoint const &,class wxSize const &,long,class wxString const &)" ([email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CellBuffer::BeginUndoAction(void)" (?B[email protected]@@QAEXXZ) referenced in function "public: void __thiscall Document::BeginUndoAction(void)" ([email protected]@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CellBuffer::EndUndoAction(void)" ([email protected]@@QAEXXZ) referenced in function "public: void __thiscall Document::EndUndoAction(void)" ([email protected]@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CallTip::PaintCT(class Surface *)" ([email protected]@@[email protected]@@Z) referenced in function "public: void __thiscall wxSTCCallTip::OnPaint(class wxPaintEvent &)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CallTip::MouseClick(class Point)" ([email protected]@@[email protected]@@Z) referenced in function "public: void __thiscall wxSTCCallTip::OnLeftDown(class wxMouseEvent &)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CallTip::CallTipCancel(void)" ([email protected]@@QAEXXZ) referenced in function "public: virtual void __thiscall ScintillaWX::CancelModes(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: bool __thiscall SelectionPosition::operator<(class SelectionPosition const &)const " ([email protected]@[email protected]@Z) referenced in function "public: class SelectionPosition __thiscall SelectionRange::Start(void)const " ([email protected]@@[email protected]@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Selection::IsRectangular(void)const " ([email protected]@@QBE_NXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: int __thiscall Selection::MainCaret(void)const " ([email protected]@@QBEHXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: struct SelectionRange & __thiscall Selection::Rectangular(void)" ([email protected]@@[email protected]@XZ) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall Selection::Main(void)const " ([email protected]@@QBEIXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: struct SelectionRange & __thiscall Selection::Range(unsigned int)" ([email protected]@@[email protected]@[email protected]) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Selection::Empty(void)const " ([email protected]@@QBE_NXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Copy(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::InvalidateStyleData(void)" ([email protected]@@IAEXXZ) referenced in function "public: void __thiscall ScintillaWX::DoSysColourChange(void)" ([email protected]@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::InvalidateStyleRedraw(void)" ([email protected]@@IAEXXZ) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::DropGraphics(bool)" ([email protected]@@[email protected]) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class Point __thiscall Editor::GetVisibleOriginInMain(void)const " ([email protected]@@[email protected]@XZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall Editor::TopLineOfMain(void)const " ([email protected]@@MBEHXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class PRectangle __thiscall Editor::GetClientRectangle(void)const " ([email protected]@@[email protected]@XZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class PRectangle __thiscall Editor::GetClientDrawingRectangle(void)" ([email protected]@@[email protected]@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: class PRectangle __thiscall Editor::GetTextRectangle(void)const " ([email protected]@@[email protected]@XZ) referenced in function "public: virtual bool __thiscall ScintillaWX::ModifyScrollBars(int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall Editor::LinesOnScreen(void)const " ([email protected]@@MBEHXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::LinesToScroll(void)const " ([email protected]@@IBEHXZ) referenced in function "public: void __thiscall ScintillaWX::DoVScroll(int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::MaxScrollPos(void)const " ([email protected]@@IBEHXZ) referenced in function "public: void __thiscall ScintillaWX::DoVScroll(int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::PositionFromLocation(class Point,bool,bool)" ([email protected]@@[email protected]@[email protected]) referenced in function "public: void __thiscall ScintillaWX::DoRightButtonDown(class Point,unsigned int,bool,bool,bool)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall Editor::AbandonPaint(void)" ([email protected]@@MAE_NXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::RedrawRect(class PRectangle)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::DiscardOverdraw(void)" ([email protected]@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::Redraw(void)" ([email protected]@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::SetEmptySelection(int)" ([email protected]@@[email protected]) referenced in function "public: void __thiscall ScintillaWX::DoRightButtonDown(class Point,unsigned int,bool,bool,bool)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: class Point __thiscall Editor::PointMainCaret(void)" ([email protected]@@[email protected]@XZ) referenced in function "public: virtual void __thiscall ScintillaWX::UpdateSystemCaret(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ScrollTo(int,bool)" ([email protected]@@[email protected]) referenced in function "public: void __thiscall ScintillaWX::DoVScroll(int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::HorizontalScrollTo(int)" ([email protected]@@[email protected]) referenced in function "public: virtual bool __thiscall ScintillaWX::ModifyScrollBars(int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyCaretMove(void)" ([email protected]@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall Editor::Wrapping(void)const " ([email protected]@@IBE_NXZ) referenced in function "public: virtual bool __thiscall ScintillaWX::ModifyScrollBars(int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::Paint(class Surface *,class PRectangle)" ([email protected]@@[email protected]@[email protected]@@Z) referenced in function "public: void __thiscall ScintillaWX::DoPaint(class wxDC *,class wxRect)" ([email protected]@@[email protected]@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::ReconfigureScrollBars(void)" ([email protected]@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ChangeSize(void)" ([email protected]@@IAEXXZ) referenced in function "public: void __thiscall ScintillaWX::DoSize(int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::InsertPaste(char const *,int)" ([email protected]@@[email protected]) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ClearSelection(bool)" ([email protected]@@[email protected]) referenced in function "public: virtual void __thiscall ScintillaWX::StartDrag(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::PasteRectangular(class SelectionPosition,char const *,int)" ([email protected]@@[email protected]@[email protected]) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::CopyAllowLine(void)" ([email protected]@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: virtual bool __thiscall Editor::CanPaste(void)" ([email protected]@@MAE_NXZ) referenced in function "public: virtual bool __thiscall ScintillaWX::CanPaste(void)" ([email protected]@@UAE_NXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: static int __cdecl Editor::ModifierFlags(bool,bool,bool,bool,bool)" ([email protected]@@[email protected]) referenced in function "public: void __thiscall ScintillaWX::DoRightButtonDown(class Point,unsigned int,bool,bool,bool)" ([email protected]@@[email protected]@I_N11[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyFocus(bool)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::SetCtrlID(int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyDoubleClick(class Point,int)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyDoubleClick(class Point,bool,bool,bool)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyModifyAttempt(class Document *,void *)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifySavePoint(class Document *,void *,bool)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyModified(class Document *,class DocModification,void *)" ([email protected]@@[email protected]@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyDeleted(class Document *,void *)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyStyleNeeded(class Document *,void *,int)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyErrorOccurred(class Document *,void *,int)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Editor::CaseMapString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: virtual void __thiscall Editor::CancelModes(void)" ([email protected]@@MAEXXZ) referenced in function "public: virtual void __thiscall ScintillaWX::CancelModes(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall Editor::KeyDefault(int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::KeyDownWithModifiers(int,int,bool *)" ([email protected]@@[email protected]) referenced in function "public: int __thiscall ScintillaWX::DoKeyDown(class wxKeyEvent const &,bool *)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class CaseFolder * __thiscall Editor::CaseFolderForEncoding(void)" ([email protected]@@[email protected]@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::CopySelectionRange(class SelectionText *,bool)" ([email protected]@@[email protected]@[email protected]) referenced in function "public: virtual void __thiscall ScintillaWX::Copy(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::SetDragPosition(class SelectionPosition)" ([email protected]@@[email protected]@@Z) referenced in function "public: virtual void __thiscall ScintillaWX::StartDrag(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::DisplayCursor(enum Window::Cursor)" ([email protected]@@[email protected]@@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall Editor::DragThreshold(class Point,class Point)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::DropAt(class SelectionPosition,char const *,bool,bool)" ([email protected]@@[email protected]@[email protected]) referenced in function "public: bool __thiscall ScintillaWX::DoDropText(long,long,class wxString const &)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall Editor::PointInSelection(class Point)" ([email protected]@@[email protected]@@Z) referenced in function "public: void __thiscall ScintillaWX::DoRightButtonDown(class Point,unsigned int,bool,bool,bool)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ButtonMove(class Point)" ([email protected]@@[email protected]@@Z) referenced in function "public: void __thiscall ScintillaWX::DoLeftButtonMove(class Point)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ButtonUp(class Point,unsigned int,bool)" ([email protected]@@[email protected]@[email protected]) referenced in function "public: void __thiscall ScintillaWX::DoLeftButtonUp(class Point,unsigned int,bool)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall Editor::Idle(void)" ([email protected]@@IAE_NXZ) referenced in function "public: void __thiscall ScintillaWX::DoOnIdle(class wxIdleEvent &)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::SetTicking(bool)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::TickFor(enum Editor::TickReason)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::SetFocusState(bool)" ([email protected]@@[email protected]) referenced in function "public: void __thiscall ScintillaWX::DoLoseFocus(void)" ([email protected]@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::IdleWork(void)" ([email protected]@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::QueueIdleWork(enum WorkNeeded::workItems,int)" ([email protected]@@[email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall Editor::PaintContains(class PRectangle)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::SetDocPointer(class Document *)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class Range __thiscall Editor::GetHotSpotRange(void)const " ([email protected]@@[email protected]@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::CodePage(void)const " ([email protected]@@IBEHXZ) referenced in function "public: __thiscall AutoSurface::AutoSurface(void *,class Editor *,int)" ([email protected]@[email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: __thiscall ScintillaBase::ScintillaBase(void)" ([email protected]@[email protected]) referenced in function "public: __thiscall ScintillaWX::ScintillaWX(class wxStyledTextCtrl *)" ([email protected]@[email protected]@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: virtual __thiscall ScintillaBase::~ScintillaBase(void)" ([email protected]@[email protected]) referenced in function "public: virtual __thiscall ScintillaWX::~ScintillaWX(void)" ([email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::Finalise(void)" ([email protected]@@MAEXXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Finalise(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::AddCharUTF(char const *,unsigned int,bool)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::Command(int)" ([email protected]@@[email protected]) referenced in function "public: void __thiscall ScintillaWX::DoCommand(int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall ScintillaBase::KeyCommand(unsigned int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::AutoCompleteCancel(void)" ([email protected]@@IAEXXZ) referenced in function "public: virtual void __thiscall ScintillaWX::CancelModes(void)" ([email protected]@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::AutoCompleteCompleted(char,unsigned int)" ([email protected]@@[email protected]) referenced in function "public: void __thiscall ScintillaWX::DoOnListBox(void)" ([email protected]@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::CallTipClick(void)" ([email protected]@@IAEXXZ) referenced in function "public: void __thiscall wxSTCCallTip::OnLeftDown(class wxMouseEvent &)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall ScintillaBase::ShouldDisplayPopup(class Point)const " ([email protected]@@[email protected]@@Z) referenced in function "public: bool __thiscall ScintillaWX::DoContextMenu(class Point)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::ContextMenu(class Point)" ([email protected]@@[email protected]@@Z) referenced in function "public: bool __thiscall ScintillaWX::DoContextMenu(class Point)" ([email protected]@@[email protected]@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::ButtonDownWithModifiers(class Point,unsigned int,int)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::ButtonDown(class Point,unsigned int,bool,bool,bool)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::RightButtonDownWithModifiers(class Point,unsigned int,int)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::NotifyStyleToNeeded(int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::NotifyLexerChanged(class Document *,void *)" ([email protected]@@[email protected]@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: virtual int __thiscall ScintillaBase::WndProc(unsigned int,unsigned int,int)" ([email protected]@@[email protected]) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: static class LexerManager * __cdecl LexerManager::GetInstance(void)" ([email protected]@@[email protected]) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" ([email protected]@@[email protected])
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall LexerManager::Load(char const *)" ([email protected]@@[email protected]) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" ([email protected]@@[email protected])
..\..\lib\vc14_dll-monolithic\wxmsw311ud_vc_custom.dll : fatal error LNK1120: 96 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
Build failed!


Any idea what to do? It looks as a bug to me but I have no experience with builds that turn the features off so perhaps I did something wrong. FWIW, I could build the multilib version of the library with the exact same settings just fine...

Thanks.

User avatar
doublemax
Moderator
Moderator
Posts: 12822
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Building wxWidgets with nmake as monolithic DLL without Scintilla support  [SOLVED]

Postby doublemax » Fri Jan 26, 2018 7:50 pm

I'm pretty sure all the different combinations are never tested and that you just found a non-working one.

Try opening a ticket and hopefully VZ knows how to fix it :)
Use the source, Luke!

PB
Part Of The Furniture
Part Of The Furniture
Posts: 1755
Joined: Sun Jan 03, 2010 5:45 pm

Re: Building wxWidgets with nmake as monolithic DLL without Scintilla support

Postby PB » Fri Jan 26, 2018 7:54 pm

Thought so, thanks for the confirmation. I also just tried the build without STC disabled and this worked.

Edit: It was indeed a bug but it is fixed now: https://github.com/wxWidgets/wxWidgets/commit/7d6b44687f1511ef119c5a6e73d00ceb38faae41


Return to “Compiler / Linking / IDE Related”

Who is online

Users browsing this forum: No registered users and 4 guests