I have WX application which compiles/runs good. Now I need a static Library of all my Custom Components which again I was able to generate using CodeBlocks. When I try to link this static lib with my application, I get linker complaining about of wxHtmlEasyPrinitng class references,
Code: Select all
||=== Build: Release in eT_AE_DL2_v100 (compiler: GNU GCC Compiler) ===|
support\libeTLib.a(printing.o):printing.cpp|| undefined reference to `wxHtmlEasyPrinting::wxHtmlEasyPrinting(wxString const&, wxWindow*)'|
support\libeTLib.a(printing.o):printing.cpp|| undefined reference to `wxHtmlEasyPrinting::SetStandardFonts(int, wxString const&, wxString const&)'|
support\libeTLib.a(printing.o):printing.cpp|| undefined reference to `wxHtmlEasyPrinting::SetHeader(wxString const&, int)'|
support\libeTLib.a(printing.o):printing.cpp|| undefined reference to `wxHtmlEasyPrinting::SetFooter(wxString const&, int)'|
support\libeTLib.a(printing.o):printing.cpp|| undefined reference to `wxHtmlEasyPrinting::PreviewFile(wxString const&)'|
support\libeTLib.a(printing.o):printing.cpp|| undefined reference to `wxHtmlEasyPrinting::PrintFile(wxString const&)'|
support\libeTLib.a(printing.o):printing.cpp|| undefined reference to `wxHtmlEasyPrinting::PageSetup()'|
||error: ld returned 1 exit status|
||=== Build failed: 8 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Do I need to need add something else while generating my static lib to resolve the wxHtmlEasyPrinting refs issue?
My setup is,
wxWidgets : 3.0.3 static linking
CodeBlocks : 16.01
Windows : 7/10
mingw : 4.9.2
Thanks in advance.
sam_des