[sword-devel] Trouble compiling testlib.cpp

Glenn Reed sword-devel@crosswire.org
Fri, 7 Jan 2000 20:22:10 +1300 (NZDT)


Hi,

I have been having some problems compiling the testlib.cpp program supplied
with the source distribution.  I did a top level make which seemed to make
the libraries and shared libraries although this also did not happen without
error messages along the way.

darkstar:/home/glenn/devel/sword-1.4.6/lib$ ls -l
total 174
-rw-r--r--   1 glenn    users         231 Oct 17 17:52 Makefile
-rw-r--r--   1 glenn    users          70 May  5  1999 README
-rw-r--r--   1 glenn    users       89738 Jan  6 20:49 libsword.a
-rwxr-xr-x   1 glenn    users       83746 Jan  6 20:49 libsword.so
darkstar:/home/glenn/devel/sword-1.4.6/lib$

so from above the files seemed to be created okay.  However when I did a
$ make testlib

I got the following error report ....

=========================================================
In file included from include/swmodule.h:30,
                 from include/swtext.h:26,
                 from include/rawtext.h:27,
                 from testlib.cpp:4:
include/swfilter.h:29: parse error before `::'
include/swfilter.h:29: `std' was not declared in this scope
include/swfilter.h:29: parse error before `::'
include/swfilter.h:35: `OptionsList' declared as a `virtual' field
include/swfilter.h:35: parse error before `('
include/swfilter.h:36: two or more data types in declaration of `setOptionValue'
include/swfilter.h:36: virtual outside class declaration
include/swfilter.h:36: semicolon missing after declaration of `class SWFilter'
include/swfilter.h:37: virtual outside class declaration
include/swfilter.h:38: virtual outside class declaration
include/swfilter.h: In function `char ProcessText(char *, int, const class SWKey *)':
include/swfilter.h:38: too few arguments to function `char ProcessText(char *, int, const class SWKey *)'
include/swfilter.h:38: at this point in file
include/swfilter.h: At top level:
include/swfilter.h:39: virtual outside class declaration
include/swfilter.h:40: parse error before `}'
In file included from include/swtext.h:26,
                 from include/rawtext.h:27,
                 from testlib.cpp:4:
include/swmodule.h:33: warning: namespaces are mostly broken in this version of g++
====================================================

Does anyone know why this is?  I am using g++ for Linux.

Glenn.


==================================================
Glenn Reed		Email: g.reed@clear.net.nz
==================================================