Hello Craig,

There's only one (template) persist() method to implement. It will be
used for several actions, that's why you see it called with the
template type DropSchema, InitSchema, ...

I don't know why your template methods are not instantiated
automatically, since the compiler normally does this automatically,
unless you use the undocumented
DBO_EXTERN_TEMPLATES/DBO_INSTANTIATE_TEMPLATES macros. A minimalist
test case demonstrating the problem would help.

BR,
Wim Dumon.

2012/8/29 Craig Miller <craig.mil...@spatialminds.com>:
> I've using Wt from Git (A few weeks old) and am following the tutorial at 
> http://www.webtoolkit.eu/wt/doc/tutorial/dbo/tutorial.html to learn how to 
> use Wt::Dbo.  Following that tutorial I've implemented a persist method as 
> instructed.
>
> template<class Action> void persist(Action& a)
>
> When I link, I get a number of linker errors that seem to indicate that I'm 
> supposed to implement a couple of additional persist methods that take 
> different parameters.  Am I missing a base class, or can someone point me to 
> documentation on the proper implementation of these methods, or ???
>
> Undefined symbols for architecture x86_64:
>   "void Project::persist<Wt::Dbo::DropSchema>(Wt::Dbo::DropSchema&)", 
> referenced from:
>       void Wt::Dbo::persist<Project, 
> void>::apply<Wt::Dbo::DropSchema>(Project&, Wt::Dbo::DropSchema&) in 
> HydrovoltsConnectProjects.cpp.o
>   "void Project::persist<Wt::Dbo::InitSchema>(Wt::Dbo::InitSchema&)", 
> referenced from:
>       void Wt::Dbo::persist<Project, 
> void>::apply<Wt::Dbo::InitSchema>(Project&, Wt::Dbo::InitSchema&) in 
> HydrovoltsConnectProjects.cpp.o
>
> Thanks,
> Craig
>
> Craig Miller
> http://spatialminds.com
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to