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

Compiling errors #122

Open
moltenaccount opened this issue Jul 22, 2023 · 1 comment
Open

Compiling errors #122

moltenaccount opened this issue Jul 22, 2023 · 1 comment

Comments

@moltenaccount
Copy link

I've been trying to compile this on Linux Mint and I get a whole bunch of errors (pasted below). I have no idea what any of this means, any ideas what's going on here and how I might be able to get it to work? Thanks

make -f Makefile
compiling source/core/slot_manager.cpp...
In file included from source/core/slot_manager.h:8,
from source/core/slot_manager.cpp:1:
source/core/uinput.h:34:33: error: ‘std::shared_ptr’ has not been declared
34 | int watch_for_ff(int fd, std::shared_ptr<virtual_device>& slot);
| ^~~~~~~~~~
source/core/uinput.h:34:43: error: expected ‘,’ or ‘...’ before ‘<’ token
34 | int watch_for_ff(int fd, std::shared_ptr<virtual_device>& slot);
| ^
source/core/uinput.h:40:22: error: ‘weak_ptr’ is not a member of ‘std’
40 | std::map<int, std::weak_ptr<virtual_device>> ff_slots;
| ^~~~~~~~
source/core/uinput.h:16:1: note: ‘std::weak_ptr’ is defined in header ‘’; did you forget to ‘#include ’?
15 | #include
+++ |+#include
16 |
source/core/uinput.h:40:22: error: ‘weak_ptr’ is not a member of ‘std’
40 | std::map<int, std::weak_ptr<virtual_device>> ff_slots;
| ^~~~~~~~
source/core/uinput.h:40:22: note: ‘std::weak_ptr’ is defined in header ‘’; did you forget to ‘#include ’?
source/core/uinput.h:40:31: error: template argument 2 is invalid
40 | std::map<int, std::weak_ptr<virtual_device>> ff_slots;
| ^~~~~~~~~~~~~~
source/core/uinput.h:40:31: error: template argument 4 is invalid
source/core/uinput.h:40:45: error: expected unqualified-id before ‘>’ token
40 | std::map<int, std::weak_ptr<virtual_device>> ff_slots;
| ^~
make: *** [Makefile:60: source/core/slot_manager.o] Error 1

@qwertychouskie
Copy link

#99

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

2 participants