gpt4 book ai didi

sqlite - 获取 'Dart_NewString':在构建dart-sqlite时找不到标识符

转载 作者:行者123 更新时间:2023-12-03 04:17:27 24 4
gpt4 key购买 nike

这是dart-sqlite:https://github.com/sam-mccall/dart-sqlite

尝试构建它,因为我需要32位版本。也有可能以32bit的形式获得它吗?

我将路径设置为dart-sdk,将路径设置为sqlite源并尝试构建:

D:\Contrib\dart-sqlite>build
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

dart_sqlite.cc
src\dart_sqlite.cc(42) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(43) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(44) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(97) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(121) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(123) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(124) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(195) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(229) : error C3861: 'Dart_NewString': identifier not found
src\dart_sqlite.cc(266) : error C3861: 'Dart_IsString8': identifier not found
Generating Code...
Compiling...
sqlite3.c
Generating Code...

我必须切换编译器吗?还是我想念什么?

最佳答案

快速浏览一下最新的sdk头文件Dart_NewString不再存在。以下签名可用,因此您可能需要更新sam的代码。

16:53:48-adam@Adams-MacBook-Air:~/dart_bleeding/dart/runtime/include
$ grep -r Dart_NewString *
dart_api.h:DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char* str);
dart_api.h:DART_EXPORT Dart_Handle Dart_NewStringFromUTF8(const uint8_t* utf8_array,
dart_api.h:DART_EXPORT Dart_Handle Dart_NewStringFromUTF16(const uint16_t* utf16_array,
dart_api.h:DART_EXPORT Dart_Handle Dart_NewStringFromUTF32(const uint32_t* utf32_array,

关于sqlite - 获取 'Dart_NewString':在构建dart-sqlite时找不到标识符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13414561/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com