[odb-users] No such file after upgrading to 1.4.0

Bright Dadson losintikfos at yahoo.co.uk
Mon Jul 18 17:52:14 EDT 2011


Hi guys,

I have tried hard to resolve this issue below for almost 4 days now, but I think I have to seek advice on this. After moving the odb 1.4.0 installation to /usr/local/include when I clean my project I get this error.

Can someone tell me what I have done wrong.

g++  -o"myproj"  ./src/education-odb.o ./src/myproj.o ./src/member-odb.o   -lodb-mysql -lodb
./src/education-odb.o: In function `odb::access::object_traits<education>::persist(odb::database&, education&)':
/root/Documents/project/myproj/Debug/../src/education-odb.cxx:527: undefined reference to `odb::mysql::insert_statement::id()'
./src/education-odb.o: In function `odb::access::object_traits<education>::query_(odb::database&, odb::access::object_traits<education>::query_type const&, odb::mysql::object_statements<education>&, odb::details::shared_ptr<odb::mysql::select_statement>&)':
/root/Documents/project/myproj/Debug/../src/education-odb.cxx:776: undefined reference to `odb::mysql::query::parameters_binding() const'
./src/member-odb.o: In function `odb::access::object_traits<member>::persist(odb::database&, member&)':
/root/Documents/project/myproj/Debug/../src/member-odb.cxx:431: undefined reference to `odb::mysql::insert_statement::id()'
./src/member-odb.o: In function `odb::access::object_traits<member>::query_(odb::database&, odb::access::object_traits<member>::query_type const&, odb::mysql::object_statements<member>&, odb::details::shared_ptr<odb::mysql::select_statement>&)':
/root/Documents/project/myproj/Debug/../src/member-odb.cxx:680: undefined reference to `odb::mysql::query::parameters_binding() const'

Or make sure that that the include dir is listed in the project properties.
http://imgur.com/FuxfC



> I have generated persistence classes using 1.4.0. in netbeans.

> Everything works fine, but when I try to build the project.

> I get below error:

>

>

> /root/Documents/project/eduProj/education-odb.cxx:5:23: warning: odb/pre.hxx: No such file or directory



Looks like your C++ compiler (g++) cannot find the libodb headers. Make

sure that you installed 1.4.0 into a location where g++ looks by default

(normally /usr and /usr/local).



Boris







More information about the odb-users mailing list