Skip to content

Some symbols are unresolved in 2.1.1 #8751

Description

@alervd

I'm trying to upgrade from 2.0.11 to 2.1.1.
I've build 2.1.1 using cmake with deprecated-functions enabled.
Compiles fine, but linker can't find these symbols:

error: LNK2019: unresolved external symbol "public: __cdecl libtorrent::announce_entry::announce_entry(void)" (??0announce_entry@libtorrent@@QEAA@XZ) 
error: LNK2019: unresolved external symbol "public: __cdecl libtorrent::announce_entry::~announce_entry(void)" (??1announce_entry@libtorrent@@QEAA@XZ)
error: LNK2019: unresolved external symbol "public: struct libtorrent::announce_entry & __cdecl libtorrent::announce_entry::operator=(struct libtorrent::announce_entry const &)& " (??4announce_entry@libtorrent@@QEGAAAEAU01@AEBU01@@Z)
error: LNK2019: unresolved external symbol "public: class std::vector<struct libtorrent::announce_entry,class std::allocator<struct libtorrent::announce_entry> > __cdecl libtorrent::torrent_handle::trackers(void)const " (?trackers@torrent_handle@libtorrent@@QEBA?AV?$vector@Uannounce_entry@libtorrent@@V?$allocator@Uannounce_entry@libtorrent@@@std@@@std@@XZ) 
error: LNK2019: unresolved external symbol "public: void __cdecl libtorrent::torrent_handle::replace_trackers(class std::vector<struct libtorrent::announce_entry,class std::allocator<struct libtorrent::announce_entry> > const &)const " (?replace_trackers@torrent_handle@libtorrent@@QEBAXAEBV?$vector@Uannounce_entry@libtorrent@@V?$allocator@Uannounce_entry@libtorrent@@@std@@@std@@@Z)
error: LNK2019: unresolved external symbol "public: void __cdecl libtorrent::torrent_handle::add_tracker(struct libtorrent::announce_entry const &)const " (?add_tracker@torrent_handle@libtorrent@@QEBAXAEBUannounce_entry@2@@Z)
error: LNK1120: 6 unresolved externals

I'm using Microsoft Visual C++ 2022.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions