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

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

本文关键字:Poco Data Date 字段 dateOfBirth 错误 类型      更新时间:2023-10-16

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

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

但是在编译时我收到错误:

错误:字段"出生日期"的类型不完整"Poco::D ata::D ate">

#include <Poco/Data/Date.h>

应包含此头文件