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

Error while making: invalid conversion from ‘int64_t (*)()’ {aka ‘long int (*)()’} to ‘void*’ #6

Open
mr-mikmik opened this issue Aug 24, 2021 · 0 comments

Comments

@mr-mikmik
Copy link

Hi, I am on Ubuntu 20.04 and when making I got the following error:

Scanning dependencies of target procman-deputy
[ 95%] Building CXX object src/deputy/CMakeFiles/procman-deputy.dir/event_loop.cpp.o
[ 97%] Building CXX object src/deputy/CMakeFiles/procman-deputy.dir/procman_deputy.cpp.o
In file included from /home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/orders_t.hpp:14,
from /home/mmint/InstalledProjects/procman/src/deputy/procman_deputy.hpp:9,
from /home/mmint/InstalledProjects/procman/src/deputy/procman_deputy.cpp:21:
/home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/cmd_desired_t.hpp: In static member function ‘static uint64_t procman_lcm::cmd_desired_t::_computeHash(const __lcm_hash_ptr*)’:
/home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/cmd_desired_t.hpp:179:51: error: invalid conversion from ‘int64_t ()()’ {aka ‘long int ()()’} to ‘void*’ [-fpermissive]
179 | const __lcm_hash_ptr cp = { p, cmd_desired_t::getHash };
| ~~~~~~~~~~~~~~~^~~~~~~
| |
| int64_t ()() {aka long int ()()}
In file included from /home/mmint/InstalledProjects/procman/src/deputy/procman_deputy.hpp:9,
from /home/mmint/InstalledProjects/procman/src/deputy/procman_deputy.cpp:21:
/home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/orders_t.hpp: In static member function ‘static uint64_t procman_lcm::orders_t::_computeHash(const __lcm_hash_ptr*)’:
/home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/orders_t.hpp:217:46: error: invalid conversion from ‘int64_t ()()’ {aka ‘long int ()()’} to ‘void*’ [-fpermissive]
217 | const __lcm_hash_ptr cp = { p, orders_t::getHash };
| ~~~~~~~~~~^~~~~~~
| |
| int64_t ()() {aka long int ()()}
In file included from /home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/deputy_info_t.hpp:14,
from /home/mmint/InstalledProjects/procman/src/deputy/procman_deputy.hpp:11,
from /home/mmint/InstalledProjects/procman/src/deputy/procman_deputy.cpp:21:
/home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/cmd_status_t.hpp: In static member function ‘static uint64_t procman_lcm::cmd_status_t::_computeHash(const __lcm_hash_ptr*)’:
/home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/cmd_status_t.hpp:215:50: error: invalid conversion from ‘int64_t ()()’ {aka ‘long int ()()’} to ‘void*’ [-fpermissive]
215 | const __lcm_hash_ptr cp = { p, cmd_status_t::getHash };
| ~~~~~~~~~~~~~~^~~~~~~
| |
| int64_t ()() {aka long int ()()}
In file included from /home/mmint/InstalledProjects/procman/src/deputy/procman_deputy.hpp:11,
from /home/mmint/InstalledProjects/procman/src/deputy/procman_deputy.cpp:21:
/home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/deputy_info_t.hpp: In static member function ‘static uint64_t procman_lcm::deputy_info_t::_computeHash(const __lcm_hash_ptr*)’:
/home/mmint/InstalledProjects/procman/build/include/lcmtypes/procman_lcm/deputy_info_t.hpp:247:51: error: invalid conversion from ‘int64_t ()()’ {aka ‘long int ()()’} to ‘void*’ [-fpermissive]
247 | const __lcm_hash_ptr cp = { p, deputy_info_t::getHash };
| ~~~~~~~~~~~~~~~^~~~~~~
| |
| int64_t ()() {aka long int ()()}
make[2]: *** [src/deputy/CMakeFiles/procman-deputy.dir/build.make:76: src/deputy/CMakeFiles/procman-deputy.dir/procman_deputy.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:414: src/deputy/CMakeFiles/procman-deputy.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Any ideas about what can be wrong?
Thanks!

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

1 participant