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

Linker Error when using PPLib 2024.2.8 #677

Closed
ejbunnell opened this issue Apr 4, 2024 · 5 comments
Closed

Linker Error when using PPLib 2024.2.8 #677

ejbunnell opened this issue Apr 4, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ejbunnell
Copy link

Describe the bug
When I update my PPLib to version 2024.2.8 from 2024.2.3, it creates a Linker Error when I build the C++ code.

To Reproduce
Steps to reproduce the behavior:

  1. Update PPLib to version 2024.2.8
  2. Compile C++ code
  3. See many errors that are not present when PPLib is in version 2024.2.3

Expected behavior
The build succeeds in 2024.2.3. I am not sure if there are newer versions before 2024.2.8, but I know 2024.2.3 works.

Screenshots
image_2024-04-04_170455459

Versions:

  • OS: Windows 11
  • GUI Version: 2024.1.6
  • PPLib Version: 2024.2.8
  • PPLib Language: C++
@ejbunnell ejbunnell added the bug Something isn't working label Apr 4, 2024
@mjansen4857
Copy link
Owner

Is your WPILib version up to date?

@ejbunnell
Copy link
Author

It was not, but now it is. The error is still present. I believe it might stem from this:

PathplannerLib.lib(LocalADStar.obj) : error LNK2019: unresolved external symbol _Thrd_sleep_for referenced in function "void __cdecl std::this_thread::sleep_until<struct std::chrono::steady_clock,class std::chrono::duration<__int64,struct std::ratio<1,1000000000> > >(class std::chrono::time_point<struct std::chrono::steady_clock,class std::chrono::duration<__int64,struct std::ratio<1,1000000000> > > const &)" (??$sleep_until@Usteady_clock@chrono@std@@v?$duration@_JU?$ratio@$00$0DLJKMKAA@@std@@@23@@this_thread@std@@YAXAEBV?$time_point@Usteady_clock@chrono@std@@v?$duration@_JU?$ratio@$00$0DLJKMKAA@@std@@@23@@chrono@1@@z)

I'm not entirely sure, however.

@chrono
Copy link

chrono commented Apr 4, 2024

please use code fences (triple backtick) for citing output

PathplannerLib.lib(LocalADStar.obj) : error LNK2019: unresolved external symbol _Thrd_sleep_for referenced in function "void __cdecl std::this_thread::sleep_until<struct std::chrono::steady_clock,class std::chrono::duration<__int64,struct std::ratio<1,1000000000> > >(class std::chrono::time_point<struct std::chrono::steady_clock,class std::chrono::duration<__int64,struct std::ratio<1,1000000000> > > const &)" (??$sleep_until@Usteady_clock@chrono@std@@v?$duration@_JU?$ratio@$00$0DLJKMKAA@@std@@https://github.com/23@@this_thread@std@@YAXAEBV?$time_point@Usteady_clock@chrono@std@@v?$duration@_JU?$ratio@$00$0DLJKMKAA@@std@@https://github.com/23@@chrono@1@@z)

to avoid notifying a bunch of folks accidentally.

cheers

@BarrelDev
Copy link

Have you tried updating your Visual Studio Build Tools? Our team was facing the same issue but that resolved it.

@ejbunnell
Copy link
Author

That seems to have fixed the issue. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants