etwmc / Personal-HomeKit-HAP

This project will provide source code to build a HomeKit support accessories.
MIT License
236 stars 85 forks source link

_ZNSt8ios_baseC2Ev #58

Closed beckmx closed 8 years ago

beckmx commented 8 years ago

Hello @etwmc today I encounter this issue on another platform, any idea what could this mean?

./PHK: can't resolve symbol '_ZNSt8ios_baseC2Ev' in lib './PHK'.

Do you think with the -static flag the application can run fine?

Greetings!

etwmc commented 8 years ago

Tried "make clean" yet? Otherwise, what platform and OS are you using?

beckmx commented 8 years ago

Yes I did clean, I am using openwrt but I am guessing the libraries inside the board are not exactly the same as the compilation, is there any flag to bundle everything in a single file? Without dynamic linking?

On Sunday, 8 May 2016, etwmc notifications@github.com wrote:

Tried "make clean" yet? Otherwise, what platform and OS are you using?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/etwmc/Personal-HomeKit-HAP/issues/58#issuecomment-217773810

etwmc commented 8 years ago

The program itself doesn't rely on dynamic linking (I don't think any program rely on that, static and dynamic should work the same) For how to compile static, I think that's your compiler's setting. Just add the header in the makefile and it should work fine.