[odb-users] Generating Database Support Code
Myoungkyu Song
mksong at vt.edu
Sun Dec 12 20:51:28 EST 2010
Hello Boris and ODB users,
I am writing this post about a problem of generating database support code.
Firstly, I was able to generate the database support code against the
hello-world example code by using "person.hxx" (e.g., "person-odb.cxx",
"person-odb.hxx", and "person-odb.ixx", "person.sql").
(http://www.codesynthesis.com/products/odb/doc/manual.xhtml#2)
Then, my problem is that when I tried to generate DB-Codes with the attached
file--"SequenceModel.h" adding the persistence code, I have gotten the
following errors;
$ odb -d mysql --generate-query SequenceModel.h -I../../../x10_2.1.0/include
SequenceModel.h:27:1: error: unnamed type in data member declaration
SequenceModel.h:27:1: info: use 'typedef' to name this
SequenceModel.h:28:1: error: unnamed type in data member
SequenceModel.h:28:1: info: use 'typedef' to name this type
Here is my system information: Linux (Kubuntu) 2.6.32-26-generic, g++
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, and gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3.
Best regards,
Myoungkyu Song
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SequenceModel.h
Type: text/x-chdr
Size: 2426 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20101212/8dde1992/SequenceModel.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SequenceModel.cc
Type: text/x-c++src
Size: 5359 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20101212/8dde1992/SequenceModel.cc
More information about the odb-users
mailing list