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: 1548
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 &)" (?Create@wxStyledTextCtrl@@QAE_NPAVwxWindow@@HABVwxPoint@@ABVwxSize@@JABVwxString@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CellBuffer::BeginUndoAction(void)" (?BeginUndoAction@CellBuffer@@QAEXXZ) referenced in function "public: void __thiscall Document::BeginUndoAction(void)" (?BeginUndoAction@Document@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CellBuffer::EndUndoAction(void)" (?EndUndoAction@CellBuffer@@QAEXXZ) referenced in function "public: void __thiscall Document::EndUndoAction(void)" (?EndUndoAction@Document@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CallTip::PaintCT(class Surface *)" (?PaintCT@CallTip@@QAEXPAVSurface@@@Z) referenced in function "public: void __thiscall wxSTCCallTip::OnPaint(class wxPaintEvent &)" (?OnPaint@wxSTCCallTip@@QAEXAAVwxPaintEvent@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CallTip::MouseClick(class Point)" (?MouseClick@CallTip@@QAEXVPoint@@@Z) referenced in function "public: void __thiscall wxSTCCallTip::OnLeftDown(class wxMouseEvent &)" (?OnLeftDown@wxSTCCallTip@@QAEXAAVwxMouseEvent@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall CallTip::CallTipCancel(void)" (?CallTipCancel@CallTip@@QAEXXZ) referenced in function "public: virtual void __thiscall ScintillaWX::CancelModes(void)" (?CancelModes@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: bool __thiscall SelectionPosition::operator<(class SelectionPosition const &)const " (??MSelectionPosition@@QBE_NABV0@@Z) referenced in function "public: class SelectionPosition __thiscall SelectionRange::Start(void)const " (?Start@SelectionRange@@QBE?AVSelectionPosition@@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Selection::IsRectangular(void)const " (?IsRectangular@Selection@@QBE_NXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" (?Paste@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: int __thiscall Selection::MainCaret(void)const " (?MainCaret@Selection@@QBEHXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" (?Paste@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: struct SelectionRange & __thiscall Selection::Rectangular(void)" (?Rectangular@Selection@@QAEAAUSelectionRange@@XZ) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" (?Paste@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall Selection::Main(void)const " (?Main@Selection@@QBEIXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" (?Paste@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: struct SelectionRange & __thiscall Selection::Range(unsigned int)" (?Range@Selection@@QAEAAUSelectionRange@@I@Z) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" (?Paste@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Selection::Empty(void)const " (?Empty@Selection@@QBE_NXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Copy(void)" (?Copy@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::InvalidateStyleData(void)" (?InvalidateStyleData@Editor@@IAEXXZ) referenced in function "public: void __thiscall ScintillaWX::DoSysColourChange(void)" (?DoSysColourChange@ScintillaWX@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::InvalidateStyleRedraw(void)" (?InvalidateStyleRedraw@Editor@@IAEXXZ) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" (?WndProc@ScintillaWX@@UAEHIIH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::DropGraphics(bool)" (?DropGraphics@Editor@@IAEX_N@Z) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" (?WndProc@ScintillaWX@@UAEHIIH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class Point __thiscall Editor::GetVisibleOriginInMain(void)const " (?GetVisibleOriginInMain@Editor@@MBE?AVPoint@@XZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall Editor::TopLineOfMain(void)const " (?TopLineOfMain@Editor@@MBEHXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class PRectangle __thiscall Editor::GetClientRectangle(void)const " (?GetClientRectangle@Editor@@MBE?AVPRectangle@@XZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class PRectangle __thiscall Editor::GetClientDrawingRectangle(void)" (?GetClientDrawingRectangle@Editor@@MAE?AVPRectangle@@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: class PRectangle __thiscall Editor::GetTextRectangle(void)const " (?GetTextRectangle@Editor@@IBE?AVPRectangle@@XZ) referenced in function "public: virtual bool __thiscall ScintillaWX::ModifyScrollBars(int,int)" (?ModifyScrollBars@ScintillaWX@@UAE_NHH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall Editor::LinesOnScreen(void)const " (?LinesOnScreen@Editor@@MBEHXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::LinesToScroll(void)const " (?LinesToScroll@Editor@@IBEHXZ) referenced in function "public: void __thiscall ScintillaWX::DoVScroll(int,int)" (?DoVScroll@ScintillaWX@@QAEXHH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::MaxScrollPos(void)const " (?MaxScrollPos@Editor@@IBEHXZ) referenced in function "public: void __thiscall ScintillaWX::DoVScroll(int,int)" (?DoVScroll@ScintillaWX@@QAEXHH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::PositionFromLocation(class Point,bool,bool)" (?PositionFromLocation@Editor@@IAEHVPoint@@_N1@Z) referenced in function "public: void __thiscall ScintillaWX::DoRightButtonDown(class Point,unsigned int,bool,bool,bool)" (?DoRightButtonDown@ScintillaWX@@QAEXVPoint@@I_N11@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall Editor::AbandonPaint(void)" (?AbandonPaint@Editor@@MAE_NXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::RedrawRect(class PRectangle)" (?RedrawRect@Editor@@MAEXVPRectangle@@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::DiscardOverdraw(void)" (?DiscardOverdraw@Editor@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::Redraw(void)" (?Redraw@Editor@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::SetEmptySelection(int)" (?SetEmptySelection@Editor@@IAEXH@Z) referenced in function "public: void __thiscall ScintillaWX::DoRightButtonDown(class Point,unsigned int,bool,bool,bool)" (?DoRightButtonDown@ScintillaWX@@QAEXVPoint@@I_N11@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: class Point __thiscall Editor::PointMainCaret(void)" (?PointMainCaret@Editor@@IAE?AVPoint@@XZ) referenced in function "public: virtual void __thiscall ScintillaWX::UpdateSystemCaret(void)" (?UpdateSystemCaret@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ScrollTo(int,bool)" (?ScrollTo@Editor@@IAEXH_N@Z) referenced in function "public: void __thiscall ScintillaWX::DoVScroll(int,int)" (?DoVScroll@ScintillaWX@@QAEXHH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::HorizontalScrollTo(int)" (?HorizontalScrollTo@Editor@@IAEXH@Z) referenced in function "public: virtual bool __thiscall ScintillaWX::ModifyScrollBars(int,int)" (?ModifyScrollBars@ScintillaWX@@UAE_NHH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyCaretMove(void)" (?NotifyCaretMove@Editor@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall Editor::Wrapping(void)const " (?Wrapping@Editor@@IBE_NXZ) referenced in function "public: virtual bool __thiscall ScintillaWX::ModifyScrollBars(int,int)" (?ModifyScrollBars@ScintillaWX@@UAE_NHH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::Paint(class Surface *,class PRectangle)" (?Paint@Editor@@IAEXPAVSurface@@VPRectangle@@@Z) referenced in function "public: void __thiscall ScintillaWX::DoPaint(class wxDC *,class wxRect)" (?DoPaint@ScintillaWX@@QAEXPAVwxDC@@VwxRect@@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::ReconfigureScrollBars(void)" (?ReconfigureScrollBars@Editor@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ChangeSize(void)" (?ChangeSize@Editor@@IAEXXZ) referenced in function "public: void __thiscall ScintillaWX::DoSize(int,int)" (?DoSize@ScintillaWX@@QAEXHH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::InsertPaste(char const *,int)" (?InsertPaste@Editor@@IAEXPBDH@Z) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" (?Paste@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ClearSelection(bool)" (?ClearSelection@Editor@@IAEX_N@Z) referenced in function "public: virtual void __thiscall ScintillaWX::StartDrag(void)" (?StartDrag@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::PasteRectangular(class SelectionPosition,char const *,int)" (?PasteRectangular@Editor@@IAEXVSelectionPosition@@PBDH@Z) referenced in function "public: virtual void __thiscall ScintillaWX::Paste(void)" (?Paste@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::CopyAllowLine(void)" (?CopyAllowLine@Editor@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: virtual bool __thiscall Editor::CanPaste(void)" (?CanPaste@Editor@@MAE_NXZ) referenced in function "public: virtual bool __thiscall ScintillaWX::CanPaste(void)" (?CanPaste@ScintillaWX@@UAE_NXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: static int __cdecl Editor::ModifierFlags(bool,bool,bool,bool,bool)" (?ModifierFlags@Editor@@KAH_N0000@Z) referenced in function "public: void __thiscall ScintillaWX::DoRightButtonDown(class Point,unsigned int,bool,bool,bool)" (?DoRightButtonDown@ScintillaWX@@QAEXVPoint@@I_N11@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyFocus(bool)" (?NotifyFocus@Editor@@MAEX_N@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::SetCtrlID(int)" (?SetCtrlID@Editor@@MAEXH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyDoubleClick(class Point,int)" (?NotifyDoubleClick@Editor@@MAEXVPoint@@H@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyDoubleClick(class Point,bool,bool,bool)" (?NotifyDoubleClick@Editor@@MAEXVPoint@@_N11@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyModifyAttempt(class Document *,void *)" (?NotifyModifyAttempt@Editor@@MAEXPAVDocument@@PAX@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifySavePoint(class Document *,void *,bool)" (?NotifySavePoint@Editor@@MAEXPAVDocument@@PAX_N@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyModified(class Document *,class DocModification,void *)" (?NotifyModified@Editor@@MAEXPAVDocument@@VDocModification@@PAX@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyDeleted(class Document *,void *)" (?NotifyDeleted@Editor@@MAEXPAVDocument@@PAX@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyStyleNeeded(class Document *,void *,int)" (?NotifyStyleNeeded@Editor@@MAEXPAVDocument@@PAXH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyErrorOccurred(class Document *,void *,int)" (?NotifyErrorOccurred@Editor@@MAEXPAVDocument@@PAXH@Z)
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)" (?CaseMapString@Editor@@MAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV23@H@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: virtual void __thiscall Editor::CancelModes(void)" (?CancelModes@Editor@@MAEXXZ) referenced in function "public: virtual void __thiscall ScintillaWX::CancelModes(void)" (?CancelModes@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall Editor::KeyDefault(int,int)" (?KeyDefault@Editor@@MAEHHH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::KeyDownWithModifiers(int,int,bool *)" (?KeyDownWithModifiers@Editor@@IAEHHHPA_N@Z) referenced in function "public: int __thiscall ScintillaWX::DoKeyDown(class wxKeyEvent const &,bool *)" (?DoKeyDown@ScintillaWX@@QAEHABVwxKeyEvent@@PA_N@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class CaseFolder * __thiscall Editor::CaseFolderForEncoding(void)" (?CaseFolderForEncoding@Editor@@MAEPAVCaseFolder@@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::CopySelectionRange(class SelectionText *,bool)" (?CopySelectionRange@Editor@@IAEXPAVSelectionText@@_N@Z) referenced in function "public: virtual void __thiscall ScintillaWX::Copy(void)" (?Copy@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::SetDragPosition(class SelectionPosition)" (?SetDragPosition@Editor@@IAEXVSelectionPosition@@@Z) referenced in function "public: virtual void __thiscall ScintillaWX::StartDrag(void)" (?StartDrag@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::DisplayCursor(enum Window::Cursor)" (?DisplayCursor@Editor@@MAEXW4Cursor@Window@@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall Editor::DragThreshold(class Point,class Point)" (?DragThreshold@Editor@@MAE_NVPoint@@0@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::DropAt(class SelectionPosition,char const *,bool,bool)" (?DropAt@Editor@@IAEXVSelectionPosition@@PBD_N2@Z) referenced in function "public: bool __thiscall ScintillaWX::DoDropText(long,long,class wxString const &)" (?DoDropText@ScintillaWX@@QAE_NJJABVwxString@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall Editor::PointInSelection(class Point)" (?PointInSelection@Editor@@IAE_NVPoint@@@Z) referenced in function "public: void __thiscall ScintillaWX::DoRightButtonDown(class Point,unsigned int,bool,bool,bool)" (?DoRightButtonDown@ScintillaWX@@QAEXVPoint@@I_N11@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ButtonMove(class Point)" (?ButtonMove@Editor@@IAEXVPoint@@@Z) referenced in function "public: void __thiscall ScintillaWX::DoLeftButtonMove(class Point)" (?DoLeftButtonMove@ScintillaWX@@QAEXVPoint@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::ButtonUp(class Point,unsigned int,bool)" (?ButtonUp@Editor@@IAEXVPoint@@I_N@Z) referenced in function "public: void __thiscall ScintillaWX::DoLeftButtonUp(class Point,unsigned int,bool)" (?DoLeftButtonUp@ScintillaWX@@QAEXVPoint@@I_N@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall Editor::Idle(void)" (?Idle@Editor@@IAE_NXZ) referenced in function "public: void __thiscall ScintillaWX::DoOnIdle(class wxIdleEvent &)" (?DoOnIdle@ScintillaWX@@QAEXAAVwxIdleEvent@@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::SetTicking(bool)" (?SetTicking@Editor@@MAEX_N@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::TickFor(enum Editor::TickReason)" (?TickFor@Editor@@MAEXW4TickReason@1@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall Editor::SetFocusState(bool)" (?SetFocusState@Editor@@IAEX_N@Z) referenced in function "public: void __thiscall ScintillaWX::DoLoseFocus(void)" (?DoLoseFocus@ScintillaWX@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::IdleWork(void)" (?IdleWork@Editor@@MAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::QueueIdleWork(enum WorkNeeded::workItems,int)" (?QueueIdleWork@Editor@@MAEXW4workItems@WorkNeeded@@H@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall Editor::PaintContains(class PRectangle)" (?PaintContains@Editor@@MAE_NVPRectangle@@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Editor::SetDocPointer(class Document *)" (?SetDocPointer@Editor@@MAEXPAVDocument@@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual class Range __thiscall Editor::GetHotSpotRange(void)const " (?GetHotSpotRange@Editor@@MBE?AVRange@@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: int __thiscall Editor::CodePage(void)const " (?CodePage@Editor@@IBEHXZ) referenced in function "public: __thiscall AutoSurface::AutoSurface(void *,class Editor *,int)" (??0AutoSurface@@QAE@PAXPAVEditor@@H@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: __thiscall ScintillaBase::ScintillaBase(void)" (??0ScintillaBase@@IAE@XZ) referenced in function "public: __thiscall ScintillaWX::ScintillaWX(class wxStyledTextCtrl *)" (??0ScintillaWX@@QAE@PAVwxStyledTextCtrl@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: virtual __thiscall ScintillaBase::~ScintillaBase(void)" (??1ScintillaBase@@MAE@XZ) referenced in function "public: virtual __thiscall ScintillaWX::~ScintillaWX(void)" (??1ScintillaWX@@UAE@XZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::Finalise(void)" (?Finalise@ScintillaBase@@MAEXXZ) referenced in function "public: virtual void __thiscall ScintillaWX::Finalise(void)" (?Finalise@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::AddCharUTF(char const *,unsigned int,bool)" (?AddCharUTF@ScintillaBase@@MAEXPBDI_N@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::Command(int)" (?Command@ScintillaBase@@IAEXH@Z) referenced in function "public: void __thiscall ScintillaWX::DoCommand(int)" (?DoCommand@ScintillaWX@@QAEXH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall ScintillaBase::KeyCommand(unsigned int)" (?KeyCommand@ScintillaBase@@MAEHI@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::AutoCompleteCancel(void)" (?AutoCompleteCancel@ScintillaBase@@IAEXXZ) referenced in function "public: virtual void __thiscall ScintillaWX::CancelModes(void)" (?CancelModes@ScintillaWX@@UAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::AutoCompleteCompleted(char,unsigned int)" (?AutoCompleteCompleted@ScintillaBase@@IAEXDI@Z) referenced in function "public: void __thiscall ScintillaWX::DoOnListBox(void)" (?DoOnListBox@ScintillaWX@@QAEXXZ)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::CallTipClick(void)" (?CallTipClick@ScintillaBase@@IAEXXZ) referenced in function "public: void __thiscall wxSTCCallTip::OnLeftDown(class wxMouseEvent &)" (?OnLeftDown@wxSTCCallTip@@QAEXAAVwxMouseEvent@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall ScintillaBase::ShouldDisplayPopup(class Point)const " (?ShouldDisplayPopup@ScintillaBase@@IBE_NVPoint@@@Z) referenced in function "public: bool __thiscall ScintillaWX::DoContextMenu(class Point)" (?DoContextMenu@ScintillaWX@@QAE_NVPoint@@@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "protected: void __thiscall ScintillaBase::ContextMenu(class Point)" (?ContextMenu@ScintillaBase@@IAEXVPoint@@@Z) referenced in function "public: bool __thiscall ScintillaWX::DoContextMenu(class Point)" (?DoContextMenu@ScintillaWX@@QAE_NVPoint@@@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::ButtonDownWithModifiers(class Point,unsigned int,int)" (?ButtonDownWithModifiers@ScintillaBase@@MAEXVPoint@@IH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::ButtonDown(class Point,unsigned int,bool,bool,bool)" (?ButtonDown@ScintillaBase@@MAEXVPoint@@I_N11@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::RightButtonDownWithModifiers(class Point,unsigned int,int)" (?RightButtonDownWithModifiers@ScintillaBase@@MAEXVPoint@@IH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::NotifyStyleToNeeded(int)" (?NotifyStyleToNeeded@ScintillaBase@@MAEXH@Z)
monodll_ScintillaWX.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall ScintillaBase::NotifyLexerChanged(class Document *,void *)" (?NotifyLexerChanged@ScintillaBase@@MAEXPAVDocument@@PAX@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: virtual int __thiscall ScintillaBase::WndProc(unsigned int,unsigned int,int)" (?WndProc@ScintillaBase@@UAEHIIH@Z) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" (?WndProc@ScintillaWX@@UAEHIIH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: static class LexerManager * __cdecl LexerManager::GetInstance(void)" (?GetInstance@LexerManager@@SAPAV1@XZ) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" (?WndProc@ScintillaWX@@UAEHIIH@Z)
monodll_ScintillaWX.obj : error LNK2019: unresolved external symbol "public: void __thiscall LexerManager::Load(char const *)" (?Load@LexerManager@@QAEXPBD@Z) referenced in function "public: virtual int __thiscall ScintillaWX::WndProc(unsigned int,unsigned int,int)" (?WndProc@ScintillaWX@@UAEHIIH@Z)
..\..\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: 12318
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: 1548
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