Project

General

Profile

Compilation problem:/RemoteWeb/SoftwareDevelop/SBlogProject/SBlog/ArticleListWidget.cpp:85: error: undefined reference to `Wt::Dbo::Query<Wt::Dbo::ptr<SbDbItem>, Wt::Dbo::DynamicBinding>::operator Wt::Dbo::collection<Wt::Dbo::ptr<SbDbItem> >() const'

Added by 太极美术工程狮 狮长 over 10 years ago

I'm developing a blog system.

While compiling my code , I got this error: /RemoteWeb/SoftwareDevelop/SBlogProject/SBlog/ArticleListWidget.cpp:85: error: undefined reference to `Wt::Dbo::Query<Wt::Dbo::ptr, Wt::Dbo::DynamicBinding>::operator Wt::Dbo::collection<Wt::Dbo::ptr >() const'.

It seemed that I have misused templates . However , I couldn't find where the error is .

Please take a look at my code and tell me what's the problem.

My code is devided into two projects:sbdatabaseaccess and sblog.

SbDatabaseAccess.zip is a library project , I placed the database accessing code into it . Your have to compile and install the project first like this: qmake-qt4;make ;make install

SBlog.zip is the actual blog system which links to libsbdatabaseaccess.so . Again, you compile it like this: qmake-qt4;make . But I got the error in the title while compiling this project.

I uploaded the code of these two projects . Please let me know if you need any further information.

SbDatabaseAccess.zip (10.2 KB) SbDatabaseAccess.zip sbdatabaseaccess, the database accessing library project
SBlog.zip (1.88 MB) SBlog.zip sblog, the actual blog system code which links to libsbdatabaseaccess

    (1-1/1)