BOT Man is... not a BOT. 😂
👉👉👉 My Homepage | 个人主页 👈👈👈
最新文章会第一时间在 公众号 推送(微信搜一搜 BOTManJL)
Header-Only, Strong-Typed, Compile-time Object Relation Mapping (ORM) in Modern C++ :-)
Home Page: https://bot-man-jl.github.io/articles/?post=2016/How-to-Design-a-Better-Cpp-ORM
License: MIT License
BOT Man is... not a BOT. 😂
👉👉👉 My Homepage | 个人主页 👈👈👈
最新文章会第一时间在 公众号 推送(微信搜一搜 BOTManJL)
compiler:MSVC 16.9.31205.134 (amd64)
version:master
orm-lite\ormlite.h:438: error: C2664: “bool BOT_ORM_Impl::SerializationHelper::Serialize(std::ostream &,const std::string &)”: 无法将参数 2 从“T”转换为“const std::string &”
with
[
T=int
]
orm-lite\ormlite.h:438: 原因如下: 无法从“T”转换为“const std::string”
with
[
T=int
]
orm-lite\ormlite.h:438: 无构造函数可以接受源类型,或构造函数重载决策不明确
orm-lite\ormlite.h:231: 参见“BOT_ORM_Impl::SerializationHelper::Serialize”的声明
orm-lite\ormlite.h:435: 在编译 类 模板 成员函数“BOT_ORM::Expression::SetExpr BOT_ORM::Expression::NullableField::operator =(T)”时
with
[
T=int
]
orm-lite\sample.cpp:327: 查看对正在编译的函数 模板 实例化“BOT_ORM::Expression::SetExpr BOT_ORM::Expression::NullableField::operator =(T)”的引用
with
[
T=int
]
orm-lite\sample.cpp:280: 查看对正在编译的 类 模板 实例化“BOT_ORM::Expression::NullableField”的引用
请问有遇到过类似的问题吗
1>------ 已启动生成: 项目: sample, 配置: Debug x64 ------
1>sample.cpp
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(438,1): error C2664: “bool BOT_ORM_Impl::SerializationHelper::Serialize(std::ostream &,const std::string &)”: 无法将参数 2 从“T”转换为“const std::string &”
1> with
1> [
1> T=int
1> ]
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(438,1): message : 原因如下: 无法从“T”转换为“const std::string”
1> with
1> [
1> T=int
1> ]
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(438,1): message : 无构造函数可以接受源类型,或构造函数重载决策不明确
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(231,28): message : 参见“BOT_ORM_Impl::SerializationHelper::Serialize”的声明
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(435): message : 在编译 类 模板 成员函数“BOT_ORM::Expression::SetExpr BOT_ORM::Expression::NullableField::operator =(T)”时
1> with
1> [
1> T=int
1> ]
1>D:\work-ui\ORM-Lite-master\sample\sample.cpp(327): message : 查看对正在编译的函数 模板 实例化“BOT_ORM::Expression::SetExpr BOT_ORM::Expression::NullableField::operator =(T)”的引用
1> with
1> [
1> T=int
1> ]
1>D:\work-ui\ORM-Lite-master\sample\sample.cpp(280): message : 查看对正在编译的 类 模板 实例化“BOT_ORM::Expression::NullableField”的引用
1>已完成生成项目“sample.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
Seems like the way is to extend the Constraint class
The following code is not recognized by msvc 2015 update 1... 😅
Field (std::string fieldName, const char *tableName)
: Selectable<T> { std::move (fieldName), tableName } {}
It prompts unrecognized symbol {
in this line
Error inside the macro ORMAP
template <typename T> \
friend auto BOT_ORM_Impl::JoinToTuple (const T &); \
It prompts that auto
is not allowed here...
It will be very useful to have something like:
#define ORMLITE_STRINGIFY(x) #x
#define ORMLITE_XSTRINGIFY(x) ORMLITE_STRINGIFY(x)
#define ORMLITE_VERSION_MAJOR 1
#define ORMLITE_VERSION_MINOR 2
#define ORMLITE_VERSION_RELEASE 3
#define ORMLITE_VERSION_STRING \
ORMLITE_XSTRINGIFYORMLITE_VERSION_MAJOR) "." \
ORMLITE_XSTRINGIFY(ORMLITE_VERSION_MINOR) "." \
ORMLITE_XSTRINGIFY(ORMLITE_VERSION_REVISION)
Executing task: clang++ -std=c++17 -stdlib=libc++ sample.cpp -o sample.out --debug <
Undefined symbols for architecture x86_64:
"_sqlite3_close", referenced from:
BOT_ORM_Impl::SQLConnector::~SQLConnector() in sample-f0d8c7.o
"_sqlite3_errmsg", referenced from:
BOT_ORM_Impl::SQLConnector::SQLConnector(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in sample-f0d8c7.o
"_sqlite3_exec", referenced from:
BOT_ORM_Impl::SQLConnector::Execute(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in sample-f0d8c7.o
BOT_ORM_Impl::SQLConnector::ExecuteCallback(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (int, char**)>) in sample-f0d8c7.o
"_sqlite3_free", referenced from:
BOT_ORM_Impl::SQLConnector::Execute(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in sample-f0d8c7.o
BOT_ORM_Impl::SQLConnector::ExecuteCallback(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (int, char**)>) in sample-f0d8c7.o
"_sqlite3_open", referenced from:
BOT_ORM_Impl::SQLConnector::SQLConnector(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in sample-f0d8c7.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The terminal process terminated with exit code: 1
system: macOS
environment: VScode
result of "clang++ --version":
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Seems only unique is supported, but can not find any "index" text in the code.
It is great project...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.