Closed distek closed 3 years ago
fwiw, I'm on linux too and klystrack builds both with and without the patch
it's usually a bad idea to declare a global variable from a header that's included from multiple translation units. the right fix would be to declare only the struct type in the header with a reference to an external instance, which then lives in a single TU. but since @fgaz reports that klystrack builds with the patch, the variable menu_t is probably not even used.
I think it's safe to say that is just a typo and missing the typedef keyword.
to 24. syysk. 2020 klo 13.44 rofl0r (notifications@github.com) kirjoitti:
it's usually a bad idea to declare a global variable from a header that's included from multiple translation units. the right fix would be to declare only the struct type in the header with a reference to an external instance, which then lives in a single TU. but since @fgaz https://github.com/fgaz reports that klystrack builds with the patch, the variable menu_t is probably not even used.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kometbomb/klystrack/issues/295#issuecomment-698266002, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIIV2L6MY4UDZ2C6I6PCE3SHMPG7ANCNFSM4QKYA3PQ .
I think it's safe to say that is just a typo and missing the typedef keyword.
in this case it would make sense that @distek files a PR with his patch.
Agreed.
to 24. syysk. 2020 klo 22.10 rofl0r (notifications@github.com) kirjoitti:
I think it's safe to say that is just a typo and missing the typedef keyword.
in this case it would make sense that @distek https://github.com/distek files a PR with his patch.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kometbomb/klystrack/issues/295#issuecomment-698534353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIIV2JVHSZU3LDMZGVGHADSHOKTJANCNFSM4QKYA3PQ .
Merged. Thanks!
Hello,
I found your repo and wanted to give it a try! However, during the build I received this:
for all of the
.o
files during linking.I was able to resolve this by changing the
menu_t
definition inmenu.h
to the following:The only change being the removal of
menu_t
after the struct definition:I don't know if this would cause issues on other platforms, so I'm just opening this issue for now. If for no other reason than to help someone else using Linux to be able to build this successfully.
Thank you for what you do.