Codelite Settings for wxAUTOEXCEL

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.
Post Reply
john.f.staples
In need of some credit
In need of some credit
Posts: 2
Joined: Sun Jul 09, 2017 2:18 am

Codelite Settings for wxAUTOEXCEL

Post by john.f.staples »

Hello,

In trying to build the wxAutoExcel 'minimal' sample, I get the following output (below). Seems like the first error is
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:89: undefined reference to `wxAutoExcel::wxExcelApplication::CreateInstance()'
I was able to use cmake v 3.7 to create the and build the debug files with "minimal.exe" "bulkdata.exe" and all other sample executables created and running.

Any help would be much appreciated.

Thanks,
John

Edited to add code-tags. Moderator.

Code: Select all

C:\WINDOWS\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ Minimal - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/WXAUTOEXCEL/samples/minimal'
g++.exe: warning: C:\WXAUTOEXCEL\DEBUG\lib: linker input file unused because linking not done
g++.exe: warning: .: linker input file unused because linking not done
C:/TDM-GCC-64/bin/g++.exe  -c  "C:/WXAUTOEXCEL/samples/minimal/minimal.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.1.0/lib/gcc_lib/mswud -IC:/wxWidgets-3.1.0/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0    -D__WX__  -o ./Debug/minimal.cpp.o -Ic:\WXAUTOEXCEL/include C:\WXAUTOEXCEL\DEBUG\lib  -Ic:\WXAUTOEXCEL/include .
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:25:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:244:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MyApp)
 ^
In file included from C:/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:29:
C:/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
g++.exe: warning: C:\WXAUTOEXCEL\DEBUG\lib: linker input file unused because linking not done
g++.exe: warning: .: linker input file unused because linking not done
C:/TDM-GCC-64/bin/g++.exe -o ./Debug/Minimal @"MINIMAL.txt" -LC:\WXAUTOEXCEL\DEBUG\lib    -mthreads -LC:/wxWidgets-3.1.0/lib/gcc_lib -lwxmsw31ud_richtext -lwxmsw31ud_xrc -lwxmsw31ud_aui -lwxmsw31ud_html -lwxmsw31ud_adv -lwxmsw31ud_core -lwxbase31ud_xml -lwxbase31ud_net -lwxbase31ud -lwxscintillad -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
./Debug/minimal.cpp.o: In function `MyFrame::OnCreateWorksheet(wxCommandEvent&)':
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:89: undefined reference to `wxAutoExcel::wxExcelApplication::CreateInstance()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:95: undefined reference to `wxAutoExcel::wxExcelApplication::SetVisible(bool)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:98: undefined reference to `wxAutoExcel::wxExcelApplication::GetWorkbooks()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:98: undefined reference to `wxAutoExcel::wxExcelWorkbooks::Add(wxAutoExcel::XlWBATemplate)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:109: undefined reference to `wxAutoExcel::wxExcelObject::SetAutomationLCID_(unsigned long)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:113: undefined reference to `wxAutoExcel::wxExcelWorkbook::GetWorksheets()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:113: undefined reference to `wxAutoExcel::wxExcelWorksheets::operator[](long)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:120: undefined reference to `wxAutoExcel::wxExcelWorksheet::SetName(wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:126: undefined reference to `wxAutoExcel::wxExcelRangeOwner::GetRange(wxString const&, wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:134: undefined reference to `wxAutoExcel::wxExcelRange::SetValue(wxVariant const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:136: undefined reference to `wxAutoExcel::wxExcelRange::GetFont()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:136: undefined reference to `wxAutoExcel::wxExcelFont::SetBold(bool)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:138: undefined reference to `wxAutoExcel::wxExcelRange::SetHorizontalAlignment(long)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:142: undefined reference to `wxAutoExcel::wxExcelRange::GetOffset(long, long)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:157: undefined reference to `wxAutoExcel::wxExcelRange::GetOffset(long, long)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:168: undefined reference to `wxAutoExcel::wxExcelRange::GetOffset(long, long)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:173: undefined reference to `wxAutoExcel::wxExcelRangeOwner::GetRange(wxString const&, wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:175: undefined reference to `wxAutoExcel::wxExcelRangeOwner::GetRange(wxString const&, wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:176: undefined reference to `wxAutoExcel::wxExcelRange::SetFormula(wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:181: undefined reference to `wxAutoExcel::wxExcelRangeOwner::GetRange(wxString const&, wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:183: undefined reference to `wxAutoExcel::wxExcelWorkbook::GetStyles()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:184: undefined reference to `wxAutoExcel::wxExcelStyles::operator[](wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:184: undefined reference to `wxAutoExcel::wxExcelRange::SetStyle(wxAutoExcel::wxExcelStyle)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:187: undefined reference to `wxAutoExcel::wxExcelWorksheet::GetUsedRange()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:189: undefined reference to `wxAutoExcel::wxExcelRange::GetBorders()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:190: undefined reference to `wxAutoExcel::wxExcelBorders::operator[](wxAutoExcel::XlBordersIndex)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:190: undefined reference to `wxAutoExcel::wxExcelBorder::SetWeight(wxAutoExcel::XlBorderWeight)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:191: undefined reference to `wxAutoExcel::wxExcelBorders::operator[](wxAutoExcel::XlBordersIndex)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:191: undefined reference to `wxAutoExcel::wxExcelBorder::SetWeight(wxAutoExcel::XlBorderWeight)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:192: undefined reference to `wxAutoExcel::wxExcelBorders::operator[](wxAutoExcel::XlBordersIndex)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:192: undefined reference to `wxAutoExcel::wxExcelBorder::SetWeight(wxAutoExcel::XlBorderWeight)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:193: undefined reference to `wxAutoExcel::wxExcelBorders::operator[](wxAutoExcel::XlBordersIndex)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:193: undefined reference to `wxAutoExcel::wxExcelBorder::SetWeight(wxAutoExcel::XlBorderWeight)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:194: undefined reference to `wxAutoExcel::wxExcelBorders::operator[](wxAutoExcel::XlBordersIndex)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:194: undefined reference to `wxAutoExcel::wxExcelBorder::SetWeight(wxAutoExcel::XlBorderWeight)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:195: undefined reference to `wxAutoExcel::wxExcelBorders::operator[](wxAutoExcel::XlBordersIndex)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:195: undefined reference to `wxAutoExcel::wxExcelBorder::SetWeight(wxAutoExcel::XlBorderWeight)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:198: undefined reference to `wxAutoExcel::wxExcelRangeOwner::GetRange(wxString const&, wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:199: undefined reference to `wxAutoExcel::wxExcelRange::GetFont()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:200: undefined reference to `wxAutoExcel::wxExcelFont::SetBold(bool)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:201: undefined reference to `wxAutoExcel::wxExcelFont::SetColor(wxColour const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:202: undefined reference to `wxAutoExcel::wxExcelFont::GetSize()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:202: undefined reference to `wxAutoExcel::wxExcelFont::SetSize(double)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:205: undefined reference to `wxAutoExcel::wxExcelRange::GetInterior()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:205: undefined reference to `wxAutoExcel::wxExcelInterior::SetColor(wxColour const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:208: undefined reference to `wxAutoExcel::wxExcelRangeOwner::GetRange(wxString const&, wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:208: undefined reference to `wxAutoExcel::wxExcelRange::Merge(wxAutoExcel::wxXlTribool)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:213: undefined reference to `wxAutoExcel::wxExcelRangeOwner::GetCells(long*, long*)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:215: undefined reference to `wxAutoExcel::wxExcelRange::BorderAround(wxAutoExcel::XlLineStyle*, wxAutoExcel::XlBorderWeight*, long*, wxColour const*)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:218: undefined reference to `wxAutoExcel::wxExcelWorksheet::GetUsedRange()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:218: undefined reference to `wxAutoExcel::wxExcelRange::GetEntireColumn()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:218: undefined reference to `wxAutoExcel::wxExcelRange::AutoFit()'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:221: undefined reference to `wxAutoExcel::wxExcelRangeOwner::GetRange(wxString const&, wxString const&)'
C:/WXAUTOEXCEL/samples/minimal/minimal.cpp:221: undefined reference to `wxAutoExcel::wxExcelRange::GetText()'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelRange::operator=(wxVariant const&)':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelRange.h:1159: undefined reference to `wxAutoExcel::wxExcelRange::SetValue(wxVariant const&)'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelRangeOwner::~wxExcelRangeOwner()':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelRangeOwner.h:21: undefined reference to `wxAutoExcel::wxExcelObject::~wxExcelObject()'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelRangeOwner::~wxExcelRangeOwner()':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelRangeOwner.h:21: undefined reference to `wxAutoExcel::wxExcelObject::~wxExcelObject()'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelRangeOwner::wxExcelRangeOwner()':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelRangeOwner.h:21: undefined reference to `wxAutoExcel::wxExcelObject::wxExcelObject()'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelBorder::~wxExcelBorder()':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelBorders.h:24: undefined reference to `wxAutoExcel::wxExcelObject::~wxExcelObject()'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelBorder::~wxExcelBorder()':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelBorders.h:24: undefined reference to `wxAutoExcel::wxExcelObject::~wxExcelObject()'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelStyles::~wxExcelStyles()':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelStyles.h:345: undefined reference to `wxAutoExcel::wxExcelObject::~wxExcelObject()'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelStyle::~wxExcelStyle()':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelStyles.h:20: undefined reference to `wxAutoExcel::wxExcelObject::~wxExcelObject()'
./Debug/minimal.cpp.o: In function `wxAutoExcel::wxExcelFont::~wxExcelFont()':
c:/WXAUTOEXCEL/include/wx/wxAutoExcelFont.h:27: undefined reference to `wxAutoExcel::wxExcelObject::~wxExcelObject()'
./Debug/minimal.cpp.o:c:/WXAUTOEXCEL/include/wx/wxAutoExcelWorkbook.h:25: more undefined references to `wxAutoExcel::wxExcelObject::~wxExcelObject()' follow
./Debug/minimal.cpp.o:minimal.cpp:(.rdata$.refptr._ZN11wxAutoExcel18wxDefaultXlTriboolE[.refptr._ZN11wxAutoExcel18wxDefaultXlTriboolE]+0x0): undefined reference to `wxAutoExcel::wxDefaultXlTribool'
./Debug/minimal.cpp.o:minimal.cpp:(.rdata$.refptr._ZN11wxAutoExcel13wxExcelObject13lcidEnglishUSE[.refptr._ZN11wxAutoExcel13wxExcelObject13lcidEnglishUSE]+0x0): undefined reference to `wxAutoExcel::wxExcelObject::lcidEnglishUS'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Debug/Minimal] Error 1
mingw32-make.exe: *** [All] Error 2
Minimal.mk:80: recipe for target 'Debug/Minimal' failed
mingw32-make.exe[1]: Leaving directory 'C:/WXAUTOEXCEL/samples/minimal'
Makefile:4: recipe for target 'All' failed
====67 errors, 100 warnings, total time: 00:00:51 seconds====
Last edited by DavidHart on Sun Jul 09, 2017 8:50 am, edited 1 time in total.
Reason: Added code-tags
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4182
Joined: Sun Jan 03, 2010 5:45 pm

Re: Codelite Settings for wxAUTOEXCEL

Post by PB »

Just to make sure we are on the same page. You have succeeded to build the library and the samples using provided CMake project but cannot use wxAutoExcel in your CodeLite project based on the wxAutoExcel minimal sample?

I assume you used out-of-source build folder, and generated a makefile for static debug configuration. The CMake configure output should look similar to this

Code: Select all

Configured wxAutoExcel 1.0.0 for MinGW Makefiles
    Build type:                      STATIC
    Build configuration:             Debug
    GCC C++ dialect:                 gnu++11
    Architecture:                    32-bit
    Library output folder:           F:/Dev/Desktop/wxAutoExcel-bld-gcc-static-debug/lib    
    Runtime folder (DLLs + samples): F:/Dev/Desktop/wxAutoExcel-bld-gcc-static-debug/bin
    Use precompiled headers:         ON
    Build samples:                   ON
    ------
    wxWidgets version:               3.1.1
    wxWidgets link shared:           OFF
    wxWidgets library folder:        C:/Dev/Desktop/wxWidgets-GIT/lib/gcc_lib
Assuming you then managed to build wxAutoExcel successfully with generated makefile, you should have file libwxAutoExcel10ud.a in the lib folder of the build dir (which would be F:/Dev/Desktop/wxAutoExcel-bld-gcc-static-debug/lib in the example above).

I do not use CodeLite but you probably should:
1. Add the library output folder (F:/Dev/Desktop/wxAutoExcel-bld-gcc-static-debug/lib) in the matching (Debug in the example above) project configuration settings to Libraries Search Path.
2. Add the library name (wxAutoExcel10ud in the example above) to Libraries.
3. You also need to add the Excel include path (e.g. c:\wxAutoExcel\include) to the Compiler/Include Paths.

I would also suggest reading <WXAUTOEXCEL>\docs\install.txt, Section 3 in particular.

Edit
I could build a CodeLite project with wxAutoExcel and MinGW. I created a new project using the Executable (wxWidgets enabled) project template, replaced the content of main.cpp with the content of wxAutoExcel's minimal sample, and followed the 3-item procedure above to add wxAutoExcel related settings to the project.

The resulting command line for the build was (I used the default DLL build of wxWidgets)
C:\Windows\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j2 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ minimal - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'F:/Dev/Desktop/AECodeLite/minimal'
C:/MinGW/bin/g++.exe -c "F:/Dev/Desktop/AECodeLite/minimal/main.cpp" -std=gnu++11 -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/Dev/Desktop/wxWidgets-GIT/lib/gcc_dll/mswud -IC:/Dev/Desktop/wxWidgets-GIT/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -std=gnu++11 -o ./Debug/main.cpp.o -I. -IF:/Dev/Desktop/wxAutoExcel/include
C:/MinGW/bin/g++.exe -o ./Debug/minimal @"minimal.txt" -L. -LF:/Dev/Desktop/wxAutoExcel-bld-gcc-static-debug/lib -lwxAutoExcel10ud -mwindows -mthreads -LC:/Dev/Desktop/wxWidgets-GIT/lib/gcc_dll -lwxmsw31ud_richtext -lwxmsw31ud_xrc -lwxmsw31ud_aui -lwxmsw31ud_html -lwxmsw31ud_adv -lwxmsw31ud_core -lwxbase31ud_xml -lwxbase31ud_net -lwxbase31ud -lwxscintillad -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
mingw32-make.exe[1]: Leaving directory 'F:/Dev/Desktop/AECodeLite/minimal'
====0 errors, 0 warnings====
john.f.staples
In need of some credit
In need of some credit
Posts: 2
Joined: Sun Jul 09, 2017 2:18 am

Re: Codelite Settings for wxAUTOEXCEL

Post by john.f.staples »

Problem SOLVED! Thank you for the prompt and detailed response. I followed the three steps suggested and it works great. On to using wxAutoExcel in my program.

Thanks again.
John
Post Reply