[bt-devel] build issues continued - RESOLVED

Mark Lybarger bt-devel@crosswire.org
Wed, 14 Nov 2001 22:18:07 -0500


I am finally able to build and test changes to Bibletime.  I had to make 
a change in coptionsdialog.h to make the structure noted below public 
instead of private.  I'm really not too familiar with these classes and 
how it's being used here, and am still building my knowledge of C++, but 
I don't think it is standard for a class to have access to private 
member data of another class.  Please correct me if I'm wrong, but 
that's my impression of what bibletime_slots.cpp was doing.

I can check in my change if needed so that others can see how it builds 
with the other compilers.


Mark Lybarger wrote:

> i managed to get past the sword build issue i was having. i reverted the 
> source in the swmodule.h.  my version of the gcc didn't like the way the 
> unicode variable was used in the isUnicode method.
> 
> anyway, i'm having problems building the current cvs.  maybe someone's 
> in the process of committing some change?   the problem is coming from 
> bibletime_slots.cpp where it's trying to access private member 
> data/structures from the COptionsDialog class.
> 
> any thoughts? make output is below.
> 
> 
> ------------------------------------------------------------
> 
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde 
> -I/usr/lib/qt-2.3.0/include -I/usr/X11R6/include 
> -I/usr/local/sword/include/sword  -D_REENTRANT -DQT_NO_ASCII_CAST 
> -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE  -ansi -D_XOPEN_SOURCE=500 
> -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion 
> -fno-builtin -Wnon-virtual-dtor -Wno-long-long -g -O2 -Wall -pedantic -W 
> -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-exceptions 
> -fno-check-new  -c bibletime_slots.cpp
> In file included from bibletime_slots.cpp:28:
> backend/chtmlentrydisplay.h:91: warning: `class CHTMLEntryDisplay' has 
> virtual functions but
> non-virtual destructor
> In file included from bibletime_slots.cpp:29:
> backend/chtmlchapterdisplay.h:41: warning: `class CHTMLChapterDisplay' 
> has virtual functions but
> non-virtual destructor
> bibletime_slots.cpp: In method `void BibleTime::editProfiles ()':
> frontend/optionsdialog/coptionsdialog.h:134: `struct 
> COptionsDialog::DisplayWindows' is privatebibletime_slots.cpp:439: 
> within this context
> 
>