ahausladen / JsonDataObjects

JSON parser for Delphi 2009 and newer
MIT License
413 stars 160 forks source link

C++Builder link error #45

Closed wg0517 closed 5 years ago

wg0517 commented 5 years ago

/1.json {"receiver":{"type":"single","id":"lisi"},"sender":"zhangsan","msgtype":"text","text":{"content":"Holiday Request For Pony(http://xxxxx)"}} / TJsonObject *Json=new TJsonObject(); Json->LoadFromFile(L"1.json"); ShowMessage(Json->O[L"text"]->S[L"content"]); delete Json;

[ilink32 Error] Error: Unresolved external '__fastcall Jsondataobjects::TJsonObject::GetObjectW(System::UnicodeString)' referenced from UNIT1.OBJ

Compile environment : Win10 64bit & C++Builder 10.2.3 Community Edition

In addition, please add {$HPPEMIT ' #pragma link "Jsondataobjects"} to the source code for ease of use of CB users, thank you.