Bug #3726
closedNon compiling wt
0%
Description
I was install latest realese wt, and I have problem with compile my project.
Undefined reference to bind function.
session.find().where("last_session =?").bind( "cookie_name" );
build/Debug/GNU-Linux-x86/model/Cookie.o:(.rodata._ZTVN2Wt3Dbo4Impl9ParameterIA12_cEE[_ZTVN2Wt3Dbo4Impl9ParameterIA12_cEE]+0x20): undefined reference to `Wt::Dbo::Impl::Parameter<char const*>::clone() const'
build/Debug/GNU-Linux-x86/model/Cookie.o:(.rodata._ZTVN2Wt3Dbo4Impl9ParameterIA12_cEE[_ZTVN2Wt3Dbo4Impl9ParameterIA12_cEE]+0x28): undefined reference to `Wt::Dbo::Impl::Parameter<char const*>::bind(Wt::Dbo::SaveBaseAction&)'
build/Debug/GNU-Linux-x86/model/Cookie.o:(.rodata._ZTVN2Wt3Dbo4Impl9ParameterIPKcEE[_ZTVN2Wt3Dbo4Impl9ParameterIPKcEE]+0x20): undefined reference to `Wt::Dbo::Impl::Parameter<char const*>::clone() const'
build/Debug/GNU-Linux-x86/model/Cookie.o:(.rodata._ZTVN2Wt3Dbo4Impl9ParameterIPKcEE[_ZTVN2Wt3Dbo4Impl9ParameterIPKcEE]+0x28): undefined reference to `Wt::Dbo::Impl::Parameter<char const*>::bind(Wt::Dbo::SaveBaseAction&)'
I have added do makefile -lwt -lwtdbo -lwtdbopostgres -lwthttp.
Updated by Koen Deforche almost 10 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
- Target version set to 3.3.4
Hey,
These functions are defined in Query_impl.h
This file should be included if you are including .
Is it possible to isolate the problem in small test case so that we can reproduce the issue?
Regards,
koen
Updated by Kris Duraj almost 10 years ago
Hey,
thank you for your help.
I add #include <Wt/Dbo/Query_impl.h> to my file and now it's working. I didn't make update Wt and my system for a lot of time, so earlier that I did not need this include.
Regards
Kris
Updated by Koen Deforche almost 10 years ago
- Status changed from Feedback to Closed