Re: [Cppcms-users] Build problem with Forms
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-01-22 13:56:08
|
Strange! - Compiler, platform, OS information please - Can you show the full code or provide a sample that would reproduce the error - How do you compile the code. - Can you show the exact compiler output. - How did you build CppCMS have you altered it? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Messianos Messianos <mes...@gm...> >To: cpp...@li... >Sent: Tuesday, January 22, 2013 3:48 PM >Subject: [Cppcms-users] Build problem with Forms > > >Hello, > >We are having troubles including a login form in our project. >We follow the steps in http://cppcms.com/wikipp/en/page/cppcms_1x_forms > >This is the definition of the form: > >struct SignInFormInfo : public cppcms::form { >/* Error 1 */ cppcms::widgets::text user_name; >/* Error 2 */ cppcms::widgets::password password; >cppcms::widgets::submit submit; > >SignInFormInfo() { >user_name.message("User name"); >password.message("Password"); >submit.value("Sign in"); > >add(user_name); >add(password); >add(submit); > >// Restrictions >user_name.limits(1, 31); >password.non_empty(); >} >}; > >and we get these build errors: > >Error 1: The type 'cppcms::widgets::text' must implement the inherited >pure virtual method 'cppcms::base_form::load' >Error 2: The type 'cppcms::widgets::password' must implement the >inherited pure virtual method >'cppcms::widgets::base_widget::render_input' > >We also get errors in the cppcms libraries "cppcms/form.h" and >"booster/hold_ptr.h" about the variable "_data" being private. > >We are using 1.0.3 version of CppCMS. > >Thanks for your help > >Messianos Team > >------------------------------------------------------------------------------ >Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >MVPs and experts. ON SALE this month only -- learn more at: >http://p.sf.net/sfu/learnnow-d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |