[odb-users] Netbeans build error

Bright Dadson losintikfos at yahoo.co.uk
Tue Feb 15 12:50:40 EST 2011


Hello guys,

My first C++ ORM Project using ODB. I am trying to understand the error
messages but for a novice, it seems i do not stand a chance. Do anyone
know what I am doing wrong?

I have attached a copy of the project.

below is the message:

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=
SUBPROJECTS= .build-conf
nbproject/Makefile-Debug.mk:76: warning: overriding commands for target
`build/Debug/GNU-Linux-x86/Member-odb.o'
nbproject/Makefile-Debug.mk:66: warning: ignoring old commands for
target `build/Debug/GNU-Linux-x86/Member-odb.o'
make[1]: Entering directory `/root/Documents/project/myproj'
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk
dist/Debug/GNU-Linux-x86/myproj
nbproject/Makefile-Debug.mk:76: warning: overriding commands for target
`build/Debug/GNU-Linux-x86/Member-odb.o'
nbproject/Makefile-Debug.mk:66: warning: ignoring old commands for
target `build/Debug/GNU-Linux-x86/Member-odb.o'
make[2]: Entering directory `/root/Documents/project/myproj'
mkdir -p build/Debug/GNU-Linux-x86
rm -f build/Debug/GNU-Linux-x86/Driver.o.d
g++    -c -g -MMD -MP -MF build/Debug/GNU-Linux-x86/Driver.o.d -o
build/Debug/GNU-Linux-x86/Driver.o Driver.cpp
                 from Driver.cpp:10:
/usr/local/include/odb/traits.hxx: In instantiation of
‘odb::object_traits<myproj::Member>’:
Driver.cpp:38:   instantiated from here
In file included from /usr/local/include/odb/database.hxx:14,
/usr/local/include/odb/traits.hxx:78: error: invalid use of incomplete
type ‘struct odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/forward.hxx:23: error: declaration of ‘struct
odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/traits.hxx:78: error: invalid use of incomplete
type ‘struct odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/forward.hxx:23: error: declaration of ‘struct
odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/traits.hxx:88: error: invalid use of incomplete
type ‘struct odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/forward.hxx:23: error: declaration of ‘struct
odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/traits.hxx:90: error: invalid use of incomplete
type ‘struct odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/forward.hxx:23: error: declaration of ‘struct
odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/traits.hxx:91: error: invalid use of incomplete
type ‘struct odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/forward.hxx:23: error: declaration of ‘struct
odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/traits.hxx:92: error: invalid use of incomplete
type ‘struct odb::access::object_traits<myproj::Member>’
/usr/local/include/odb/forward.hxx:23: error: declaration of ‘struct
odb::access::object_traits<myproj::Member>’
Driver.cpp: In function ‘int main(int, char**)’:
Driver.cpp:38: error: cannot convert
‘odb::object_traits<myproj::Member*>::id_type’ to ‘long unsigned int’ in
assignment
                 from Driver.cpp:10:
/usr/local/include/odb/database.txx: In member function ‘typename
odb::object_traits<T>::id_type odb::database::persist(T&) [with T =
myproj::Member*]’:
Driver.cpp:38:   instantiated from here
In file included from /usr/local/include/odb/database.hxx:185,
/usr/local/include/odb/database.txx:20: error: no type named
‘object_type’ in ‘struct odb::object_traits<myproj::Member*>’
/usr/local/include/odb/database.txx:21: error: no type named
‘object_type’ in ‘struct odb::object_traits<myproj::Member*>’
/usr/local/include/odb/database.txx:27: error: no type named
‘object_type’ in ‘struct odb::object_traits<myproj::Member*>’
/usr/local/include/odb/database.txx:28: error: no type named
‘pointer_type’ in ‘struct odb::object_traits<myproj::Member*>’
/usr/local/include/odb/database.txx:27: error: no type named
‘object_type’ in ‘struct odb::object_traits<myproj::Member*>’
/usr/local/include/odb/database.txx:27: error: no type named
‘object_type’ in ‘struct odb::object_traits<myproj::Member*>’
make[2]: Leaving directory `/root/Documents/project/myproj'
make[1]: Leaving directory `/root/Documents/project/myproj'
make[2]: *** [build/Debug/GNU-Linux-x86/Driver.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 1s)


      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myproj.zip
Type: application/zip
Size: 31586 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20110215/467a165d/myproj-0001.zip


More information about the odb-users mailing list