Skip to content

Cannot build with VS15 #4

@egorpugin

Description

@egorpugin

Hi,

For some reason I cannot build tdjson shared lib in release/relwithdebinfo configurations, debug conf is fine. See errors below. I'm using my own build (w/ package manager) and not tdlib's cmake build.
I've fixed the problem by adding this include #include "td/actor/actor.h" to https://github.com/tdlib/td/blob/master/tdactor/td/actor/impl/ConcurrentScheduler.cpp#L9.

Is this VS or tdlib issue?

15>   Creating library D:/dev/cppan_storage/obj/61/11/8e54/build/e91a4169/RelWithDebInfo/loc.2e9ec52c.td.json-local.lib and object D:/dev/cppan_storage/obj/61/11/8e54/build/e91a4169/RelWithDebInfo/loc.2e9ec52c.td.json-local.exp
15>loc.2e9ec52c.td.actor-local.lib(ConcurrentScheduler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall td::Actor::yield(void)" (?yield@Actor@td@@QAEXXZ) referenced in function "public: virtual void __thiscall td::Actor::start_up(void)" (?start_up@Actor@td@@UAEXXZ)
15>loc.2e9ec52c.td.actor-local.lib(ConcurrentScheduler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall td::Actor::stop(void)" (?stop@Actor@td@@QAEXXZ) referenced in function "public: virtual void __thiscall td::Actor::hangup(void)" (?hangup@Actor@td@@UAEXXZ)
15>loc.2e9ec52c.td.actor-local.lib(ConcurrentScheduler.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall td::Actor::empty(void)const " (?empty@Actor@td@@QBE_NXZ) referenced in function "public: virtual __thiscall td::Actor::~Actor(void)" (??1Actor@td@@UAE@XZ)
15>D:\dev\cppan_storage\tmp\build\30fc9e33\e91a4169\build\bin\RelWithDebInfo\loc.2e9ec52c.td.json-local.dll : fatal error LNK1120: 3 unresolved externals

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions