From: Larry W. V. <lv...@ca...> - 2003-02-25 17:59:10
|
Re: change to strop.h and strop.cpp for strptime After making this change and running the make again, I see this error: g++ -DHAVE_CONFIG_H -I. -I/ldatae/PilotBuilding/DB/palm-db-tools/libsupport -I.. -I/ldatae/PilotBuilding/DB/palm-db-tools -ansi -pedantic -g -O2 -Wall -Werror -Wp,-MD,.deps/strop.pp -c strop.cpp -fPIC -DPIC -o .libs/strop.lo In file included from strop.cpp:27: strop.h:105: no file-scope type named `tm' cc1plus: warnings being treated as errors strop.h:105: warning: non-local function `char * StrOps::strptime(const char *, const char *, StrOps::{anonymous struct} *)' uses anonymous type strop.cpp:281: no file-scope type named `tm' strop.cpp:282: `StrOps::strptime(const char *, const char *, {anonymous struct} *)' should have been declared inside `StrOps' strop.cpp:282: warning: non-local function `char * StrOps::strptime(const char *, const char *, {anonymous struct} *)' uses anonymous type strop.cpp: In function `char * StrOps::strptime(const char *, const char *, {anonymous struct} *)': strop.cpp:296: invalid use of undefined type `struct {anonymous}' strop.cpp:281: forward declaration of `struct {anonymous}' strop.cpp:297: invalid use of undefined type `struct {anonymous}' strop.cpp:281: forward declaration of `struct {anonymous}' and so on -- Tcl - The glue of a new generation. <URL: http://wiki.tcl.tk/ > Larry W. Virden <mailto:lv...@ca...> <URL: http://www.purl.org/NET/lvirden/> Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -><- |