[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[no subject]


I get the following errors when I try to compile an application using a
structure I declared into an archive (.a file).

The structure st_connectionData is properly defined in confighelper.h
and confighelper.h is included in flatfilehelper.h.

Any idea how to work around this ?



=== output of make ===

[10:06:35] helsinki:> (/usr/src/projets/scopesPC) : make helper
make -C helpers
make[1]: Entering directory `/usr/src/projets/scopesPC/helpers'
ar rcs confighelper.a confighelper.o
make[1]: Leaving directory `/usr/src/projets/scopesPC/helpers'

[10:06:38] helsinki:> (/usr/src/projets/scopesPC) : make loader
make -C initload
make[1]: Entering directory `/usr/src/projets/scopesPC/initload'
g++ -I../helpers -c -Wall -g initload.cpp
In file included from initload.cpp:28:
flatfilehelper.h:40: error: `st_tabledata' was not declared in this
flatfilehelper.h:40: error: parse error before `)' token

=== first lines of configfile.h ===


#define CH_GLOBALCONFIGFILE	"/usr/local/etc/scopesPC"

// Structure : database connection data
struct st_connectionData
	char	serveur[255];
	int	port;
	char	username[255];
	char	motpasse[255];
	char	bd[255];

Reply to: