Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

error: unknown type name ‘HPDF_Error’ #4

Closed
zhongjin616 opened this issue Jun 12, 2015 · 2 comments
Closed

error: unknown type name ‘HPDF_Error’ #4

zhongjin616 opened this issue Jun 12, 2015 · 2 comments

Comments

@zhongjin616
Copy link

hi,
now i am using Ubuntu 12.04 in x_86_64. gcc 4.6.3. I just download libharu-RELEASE_2_2_0.tar.gz and complie it from source.
when i try to complie your LuaHPDF, it says that the "HPDF_Error" is an unknown type.

compile output:
In file included from hpdf.c:10:0:
/usr/local/include/hpdf.h:166:19: error: unknown type name ‘HPDF_Error’
hpdf.c: In function ‘luaopen_hpdf’:
hpdf.c:3944:3: warning: implicit declaration of function ‘luaL_setfuncs’ [-Wimplicit-function-declaration]

thanks

@msva
Copy link
Contributor

msva commented Jun 14, 2015

I just built it against libharu-2.3.0 several times. All working fine. So, I guess, you have broken libharu installation.

oh, and about

hpdf.c: In function ‘luaopen_hpdf’:
hpdf.c:3944:3: warning: implicit declaration of function ‘luaL_setfuncs’ [-Wimplicit-function-declaration]

This is fixed in my pull request ( #5 )

@zhongjin616
Copy link
Author

now i use make uninstall' to uninstall the libharu which i compiled from source libharu-RELEASE_2_2_0.tar.gz and usesudo apt-get install libhpdf-dev`, i can compile the luahpdf successfully. as i use lua5.1, this problem:

hpdf.c: In function ‘luaopen_hpdf’:
hpdf.c:3944:3: warning: implicit declaration of function ‘luaL_setfuncs’ [-Wimplicit-function-declaration]

will report link error, when try to generate pdf with this hpdf package.

and thanks to @msva, his pull request has fix this problem.

thanks guys.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants