ForNeVeR / tdlib.native

Prebuilt binaries of TDLib distributed as a NuGet package.
Boost Software License 1.0
104 stars 23 forks source link

Windows build errors #76

Closed ForNeVeR closed 1 year ago

ForNeVeR commented 1 year ago

E.g. here:

cli.obj : error LNK2019: unresolved external symbol rl_line_buffer referenced in function "void __cdecl td::deactivate_readline(void)" (?deactivate_readline@td@@YAXXZ) [D:\a\tdlib.native\tdlib.native\td\build\tg_cli.vcxproj]
cli.obj : error LNK2019: unresolved external symbol rl_point referenced in function "public: virtual __cdecl td::LambdaGuard<class <lambda_8722b28637a2d18e5dc1f1ead801aff1> >::~LambdaGuard<class <lambda_8722b28637a2d18e5dc1f1ead801aff1> >(void)" (??1?$LambdaGuard@V<lambda_8722b28637a2d18e5dc1f1ead801aff1>@@@td@@UEAA@XZ) [D:\a\tdlib.native\tdlib.native\td\build\tg_cli.vcxproj]
cli.obj : error LNK2019: unresolved external symbol rl_end referenced in function "void __cdecl td::deactivate_readline(void)" (?deactivate_readline@td@@YAXXZ) [D:\a\tdlib.native\tdlib.native\td\build\tg_cli.vcxproj]
cli.obj : error LNK2019: unresolved external symbol rl_getc_function referenced in function "private: virtual void __cdecl td::CliClient::loop(void)" (?loop@CliClient@td@@EEAAXXZ) [D:\a\tdlib.native\tdlib.native\td\build\tg_cli.vcxproj]
cli.obj : error LNK2019: unresolved external symbol rl_attempted_completion_function referenced in function "private: virtual void __cdecl td::CliClient::loop(void)" (?loop@CliClient@td@@EEAAXXZ) [D:\a\tdlib.native\tdlib.native\td\build\tg_cli.vcxproj]
D:\a\tdlib.native\tdlib.native\td\build\Release\tg_cli.exe : fatal error LNK1120: 5 unresolved externals [D:\a\tdlib.native\tdlib.native\td\build\tg_cli.vcxproj]

There weren't any updates from my side, so perhaps something was changed after agent update.

ForNeVeR commented 1 year ago

Logs from good build:

2022-11-20T00:32:40.0156100Z -- Performing Test COMPILER_HAS_DEPRECATED - Success
2022-11-20T00:32:41.1945930Z -- Could NOT find Readline (missing: READLINE_LIBRARY) 
2022-11-20T00:32:41.1946946Z -- Could NOT find Readline (this is NOT an error)
2022-11-20T00:32:41.2335513Z -- Configuring done

Logs from bad build:

2022-11-27T18:02:30.8010096Z -- Performing Test GNU_READLINE_FOUND
2022-11-27T18:02:33.1816450Z -- Performing Test GNU_READLINE_FOUND - Success
2022-11-27T18:02:33.1838204Z -- Found Readline: C:/Strawberry/c/include  
2022-11-27T18:02:33.1840700Z -- Found Readline: C:/Strawberry/c/include C:/Strawberry/c/lib/libreadline.a
2022-11-27T18:02:33.1847534Z -- Performing Test USABLE_READLINE_FOUND
2022-11-27T18:02:35.0427203Z -- Performing Test USABLE_READLINE_FOUND - Success