Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dll link error #66

Open
Reveares opened this issue Aug 27, 2020 · 3 comments
Open

Dll link error #66

Reveares opened this issue Aug 27, 2020 · 3 comments
Assignees

Comments

@Reveares
Copy link

Reveares commented Aug 27, 2020

Linking a program to target SLikeNetDLL and #include "slikenet/peer.h" results in

LNK2019	unresolved external symbol "public: __cdecl SLNet::BPSTracker::TimeAndValue2::~TimeAndValue2(void)" (??1TimeAndValue2@BPSTracker@SLNet@@QEAA@XZ) referenced in function "public: void * __cdecl SLNet::BPSTracker::TimeAndValue2::`vector deleting destructor'(unsigned int)" (??_ETimeAndValue2@BPSTracker@SLNet@@QEAAPEAXI@Z)

SLikeNetLibStatic on the other hand seems to have no problems.
I tested under Windows 10 and Visual Studio 2019.
My thought was that this was a problem with vcpkg but that is not the case. Maybe the issue there results in more infos so I leave it here.

@Luke1410
Copy link
Member

Thanks for the report. We are aware that the current development/master branch has these linker issue. We'll look into this rather soon.

@Luke1410 Luke1410 self-assigned this Aug 30, 2020
@gaetandezeiraud
Copy link

Hi,
I have the same problem.

1>Server.obj : error LNK2019: unresolved external symbol "public: struct SLNet::SystemAddress __cdecl SLNet::RakNetSocket2::GetBoundAddress(void)const " (?GetBoundAddress@RakNetSocket2@SLNet@@QEBA?AUSystemAddress@2@XZ) referenced in function main
1>Server.obj : error LNK2019: unresolved external symbol Gets referenced in function main
1>Server.obj : error LNK2001: unresolved external symbol "struct SLNet::SystemAddress const SLNet::UNASSIGNED_SYSTEM_ADDRESS" (?UNASSIGNED_SYSTEM_ADDRESS@SLNet@@3USystemAddress@1@B)
1>Server.obj : error LNK2001: unresolved external symbol "struct SLNet::RakNetGUID const SLNet::UNASSIGNED_RAKNET_GUID" (?UNASSIGNED_RAKNET_GUID@SLNet@@3URakNetGUID@1@B)

Thanks.

@Sabr0sa
Copy link

Sabr0sa commented Sep 28, 2020

The struct TimeAndValue2 isn't exported properly, just go to ReliabilityLayer.h and add at line 138 a RAK_DLL_EXPORT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants