Hello
(man, I HATE anonymous sf.net CVS, it's so fscking slow!!
)
I started to trying to add autotools support for VPCS. However there are the following problems:
1. somehow in CVS VPHeader.h is actually VPheader.h as such, if you checkout CVS on a filesystem that is case sensitive (like reiserfs back here) you won't get this compiled because it won't find VPHeader.h to include it. I temporarly changed #include from VPheader.h to VPheader.h to get it going but you (Kazan) probably should do some solution in CVS too
2. you seem to be using the old, deprecated, pre-ANSI SQL98 header files (like iostream.h and such instead of "iostream"); this generates a lot of warnings from g++ (yeah, it can be made silent about what with -Wno-deprecated); let's not start another flame on ANSI SQL98 here, common is not like you have some huge project there (vpcs seems to me like a very small project) so it's about chaning very few lines and also we are not talking about a standard adopted yesterday, we talk about C++98, like 7 years ago, duh
3. some minor warnings about no end of line at the end of file:
vpcs2.h:270:19: warning: no newline at end of file
dialogs.h:96:26: warning: no newline at end of file
4. I am unable to get it compiled; I had no time to really try to fix it but to me it really shows like a code bug, is the current CVS compiling for you ?
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"wxAuto\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -Wno-deprecated -I/usr/lib64/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -O2 -I/usr/lib64/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -MT vpcs2.o -MD -MP -MF ".deps/vpcs2.Tpo" -c -o vpcs2.o vpcs2.cpp; \
then mv -f ".deps/vpcs2.Tpo" ".deps/vpcs2.Po"; else rm -f ".deps/vpcs2.Tpo"; exit 1; fi
vpcs2.cpp: In constructor `VPCS2_MainWindow::VPCS2_MainWindow()':
vpcs2.cpp:114: error: no matching function for call to `VPCS2_MainPanel::VPCS2_MainPanel(VPCS2_MainWindow* const, wxSize, wxStatusBar*&)'
vpcs2.h:141: note: candidates are: VPCS2_MainPanel::VPCS2_MainPanel(const VPCS2_MainPanel&)
vpcs2.h:167: note: VPCS2_MainPanel::VPCS2_MainPanel(wxFrame*, wxSize&, wxStatusBar*)
vpcs2.cpp: In member function `void VPCS2_MainWindow::Del_Dir(wxEvent&)':
vpcs2.cpp:264: error: no matching function for call to `VPCS2_MainPanel::DeleteDirectory(wxTreeItemId)'
vpcs2.h:208: note: candidates are: void VPCS2_MainPanel::DeleteDirectory(wxTreeItemId&)
Thanks for any help!
PS: btw, is PCS2 completely dead or should I try to get that too on autotools ? Seems Taylor has a nice working Makefile but with autotools I can make it automatically detect where is wxWidgets installed (also a configure --option in special cases) and so on.
Edit log: initially I noticed that the pasted error above get's translated at some points into smileys so I said I should wrap it with code tags but that didn't helped for the smileys either, isntead it was worse that it didnt automatically brake the lines anymore and you got a very long post (long lines post); so I removed the "code" tags back