[odb-users] query::Age --> Incomplete type is not alowed

Tarik BENZ tenchu.tarik at hotmail.fr
Fri Apr 26 03:38:31 EDT 2013


Hi Boris,

To compile User.hxx, I used :
odb.exe --std c++11 --database mssql --generate-query --generate-schema User.hxx

So I think query support should be enabled

Tarik

> Date: Fri, 26 Apr 2013 09:31:37 +0200
> From: boris at codesynthesis.com
> To: tenchu.tarik at hotmail.fr
> CC: odb-users at codesynthesis.com
> Subject: Re: [odb-users] query::Age --> Incomplete type is not alowed
> 
> Hi Tarik,
> 
> Tarik BENZ <tenchu.tarik at hotmail.fr> writes:
> 
> > result r (db->query<User> (query::userName == user && query::userPass == password));
> > // ERROR :  query::userName --> Incomplete type is not alowed
> 
> Have you enabled query support when compiling User.hxx? You need to
> pass --generate-query (or -q for short) to the ODB compiler.
> 
> Boris
 		 	   		  


More information about the odb-users mailing list