#Linker Error on macOS: Missing Template Destructor Symbol for Pimpl<StreamHistorySession::Data>

1 messages · Page 1 of 1 (latest)

muted condor
#

I’m encountering a link-time error when building the project on macOS (Apple Silicon). During the final linking step, I get this undefined symbols error:

[100%] Linking CXX executable SerialPrograms.app/Contents/MacOS/SerialPrograms
Undefined symbols for architecture arm64:
  "PokemonAutomation::Pimpl<PokemonAutomation::StreamHistorySession::Data>::~Pimpl()", referenced from:
      PokemonAutomation::NintendoSwitch::SwitchSystemSession::~SwitchSystemSession() in NintendoSwitch_SwitchSystemSession.cpp.o
      PokemonAutomation::NintendoSwitch::SwitchSystemSession::SwitchSystemSession(PokemonAutomation::NintendoSwitch::SwitchSystemOption&, unsigned long long, unsigned long) in NintendoSwitch_SwitchSystemSession.cpp.o
      PokemonAutomation::test_pokemonLA_shinySoundDetector(std::__1::vector<PokemonAutomation::AudioSpectrum, std::__1::allocator<PokemonAutomation::AudioSpectrum>> const&, bool) in PokemonLA_Tests.cpp.o
      PokemonAutomation::test_pokemonLA_shinySoundDetector(std::__1::vector<PokemonAutomation::AudioSpectrum, std::__1::allocator<PokemonAutomation::AudioSpectrum>> const&, bool) in PokemonLA_Tests.cpp.o
ld: symbol(s) not found for architecture arm64
c++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SerialPrograms.app/Contents/MacOS/SerialPrograms] Error 1
make[1]: *** [CMakeFiles/SerialPrograms.dir/all] Error 2
make: *** [all] Error 2

Thank you for your help!

stray moth
#

Pushed a fix. Try pulling now. Not sure how CI didn't catch it.

muted condor
#

Thank you!
I was able to build it now

proud tinsel
#

the revised one i mean

stray moth
#

No, pull master.

proud tinsel
#

I apologize, I'm a github noob. I downlaoded the 0.30 zip file

#

How do I pull the master

stray moth
#

Do what you did before, but instead of with 0.30, with the latest - which is 0.50.