我有一个使用 tasmota 静态库 (tasmota.lib) 的 .Net C++ 项目。该项目是在 Windows 7 上使用 Visual Studio 2022(最新)构建的。没有编译错误,但我在链接阶段有未解决的外部问题,所有这些都应该在 tasmota 库中解决。正在找到并链接该库,因为对我的 TasmotaAPI.cpp 代码的引用已解决。然而,虽然我没有直接从我自己的代码中向它们发送消息,但 TasmotaAPI.cpp 的方法从 HttpClient.cpp 向其他方法发送消息,所有这些都未解决(为清楚起见,在以下列表中删除了参数):
int sendHttpRequest();
int connect_to_server();
int communicate_with_server();
size_t recv_http_response();
static int parse_http_response();
static int get_http_return_code();
static size_t get_content_length();
static size_t get_content_offset();
static bool is_chunked_encoding();
static size_t get_chunk_length(c);
static size_t get_chunk_offset();
static size_t get_next_chunk_offset();
static std::string base64_encode();
static const char* find();
static const char* skipSpaceCharacters();
static size_t scanUint();
static size_t scanHex();
tasmota 项目自行构建,没有错误,生成的 tasmota.lib 文件正在由我的项目定位和链接,但似乎来自 HttpClient.cpp 的所有成员/方法都无法进入库。这很可能是tasmota项目的配置错误,但是我想不通到底哪里出了问题,而且tasmota项目和原来的解包还是一样的——我什么都没改。有人吗?
我检查了 tasmota 项目的属性,没有发现任何异常。 x64 架构,静态 .lib,所有源文件都存在。