error: field 'dateOfBirth' has incomplete type 'Poco::Data::Date'

huangapple go评论66阅读模式
英文:

error: field 'dateOfBirth' has incomplete type 'Poco::Data::Date'

问题

我正在尝试使用POCO库来存储出生日期。

#include <Poco/DateTime.h>
#include <Poco/Data/Time.h>
void main()
{
   Poco::Data::Date dateOfBirth;
}

但在编译时出现错误:

错误:字段'dateOfBirth'具有不完整的类型'Poco::Data::Date'。

英文:

I am trying to use POCO library to store date of birth.

#include &lt;Poco/DateTime.h&gt;
#include &lt;Poco/Data/Time.h&gt;
void main()
{
   Poco::Data::Date dateOfBirth;
}

But while compilation I am getting Error :

error: field 'dateOfBirth' has incomplete type 'Poco::Data::Date'

答案1

得分: 1

This header file should be included

英文:
#include &lt;Poco/Data/Date.h&gt;

This header file should be included

huangapple
  • 本文由 发表于 2020年1月3日 21:16:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/59579263.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定