Thanks for the reply Wim.  I've attached a simple app that replicates the 
problem on my Mac using my macports Wt Portfile.  I'm new to cmake and since I 
couldn't figure out how to get cmake to build using just a header file for the 
database mapping class (as illustrated in the example docs), I pulled a 
function out and stuck it in a corresponding cpp file.

Thanks for the help climbing the Wt learning curve.  :)

Craig

Craig Miller
http://spatialminds.com



On Aug 29, 2012, at 5:17 AM, Wim Dumon wrote:

> 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 <[email protected]>:
>> 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
>> [email protected]
>> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to