[odb-users] Problem: odb.exe fails to generate valid hxx/cxx file, not adding shared_ptr<T> in typedef

Wayne Hackle hacklew at hotmail.com
Tue Mar 13 20:12:26 EDT 2012


Yes Boris, that solves it, thanks!
I actually looked into the Visual Studio building file, and found out the automatically generated .bat file contains the correct odb command line. now with your explanation it's all clear.
do you mind me asking another question: what puzzles me infinitely now is, how does the VC project run the "odb" commandline automatically before the actual "exe" file is created? I looked looked and looked more, and couldn't find where the trick is.
Thanks!
Hackle

> Date: Tue, 13 Mar 2012 12:44:08 +0200
> From: boris at codesynthesis.com
> To: hacklew at hotmail.com
> CC: odb-users at codesynthesis.com
> Subject: Re: [odb-users] Problem: odb.exe fails to generate valid hxx/cxx	file, not adding shared_ptr<T> in typedef
> 
> Hi Wayne,
> 
> Wayne Hackle <hacklew at hotmail.com> writes:
> 
> > So I dug a bit deeper, ran "odb --database mysql --generate-query 
> > employee.hxx", then the project fails to build.
> 
> If you read the README file that accompanies the example, you will notice
> this fragment:
> 
>   These files are generated by the ODB compiler from employee.hxx using the
>   following command line:
> 
>   odb -d <database> --generate-schema --generate-query \
>   --default-pointer std::tr1::shared_ptr employee.hxx
> 
>   Where <database> stands for the database system we are using, for example,
>   'mysql'.
> 
>   The --default-pointer option is used to make TR1 shared_ptr the default
>   object pointer.
> 
> Boris
 		 	   		  


More information about the odb-users mailing list