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

Incompatible pointer type #3

Open
ilfreddy opened this issue Nov 29, 2024 · 1 comment
Open

Incompatible pointer type #3

ilfreddy opened this issue Nov 29, 2024 · 1 comment

Comments

@ilfreddy
Copy link

I encounter this error at compile time.

/Users/lfr001/src/chemtensor/pymodule/pymodule.c:544:18: error: incompatible function pointer types initializing 'initproc' (aka 'int (*)(struct _object *, struct _object *, struct _object *)') with an expression of type 'int (PyOpChainObject *, PyObject *, PyObject *)' (aka 'int (PyOpChainObject *, struct _object *, struct _object *)') [-Wincompatible-function-pointer-types]
  544 |         .tp_init      = PyOpChain_init,
      |                         ^~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/chemtensor_pymodule.dir/pymodule/pymodule.c.o] Error 1
make[1]: *** [CMakeFiles/chemtensor_pymodule.dir/all] Error 2
make: *** [all] Error 2
@ilfreddy
Copy link
Author

BTW... I assume this is mac-related...

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