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 in Ubuntu 16.04 error: ‘bool’ undeclared (first use in this function) #6

Closed
raqueldias opened this issue Oct 30, 2018 · 2 comments

Comments

@raqueldias
Copy link

I get multiple errors like this when i try to run make:
gcc perl -MExtUtils::Embed -e ccopts -fPIC -c -o kc_wrap.o kc_wrap.c
In file included from kc_wrap.c:731:0:
kc_wrap.c: In function ‘SWIG_AsCharPtrAndSize’:
/usr/lib/x86_64-linux-gnu/perl/5.22/CORE/handy.h:111:34: error: ‘bool’ undeclared (first use in this function)
#define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
^

@kaichop
Copy link
Contributor

kaichop commented Oct 30, 2018 via email

@raqueldias
Copy link
Author

Thanks! The problem was solved using perl 5.10.1 and gcc 4.9.4

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