c++ - 错误: field 'dateOfBirth' has incomplete type 'Poco::Data::Date'

标签 c++ compiler-errors poco poco-libraries

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

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

但是在编译时出现错误:

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

最佳答案

#include <Poco/Data/Date.h>

该头文件应包括在内

关于c++ - 错误: field 'dateOfBirth' has incomplete type 'Poco::Data::Date' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59579263/

相关文章:

entity-framework - Entity Framework 代码第一个问题无法确定类型之间关联的主体

c# - 实体类型 [Name] 不是当前上下文模型的一部分

c++ - 为什么用新语法 `noexcept` 重写旧的空抛出规范?

c++ - CMake交叉编译

sql-server - Case when语句中的SQL转换错误

java - 为什么我会收到此错误 'illegal start of type' ?

c# - EF 4.3 和 POCO 类 - 在哪里拦截属性值?

c++ - 如何让Widget的位置固定?

c++ - 如何在数组中存储地址 - C++?

javascript - JSLint 可以离线使用吗?