Project

General

Profile

Bug #3726

Non compiling wt

Added by Kris Duraj almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
01/14/2015
Due date:
% Done:

0%

Estimated time:

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.

#1

Updated by Koen Deforche almost 7 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

#2

Updated by Kris Duraj almost 7 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

#3

Updated by Koen Deforche over 6 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF