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

Compilation issue: Redefinition of fpconv_init when defining USE_INTERNAL_FPCONV #60

Open
arnaudfoisset opened this issue Sep 19, 2018 · 0 comments

Comments

@arnaudfoisset
Copy link

Hi,
I'm trying to compile lua-json with the USE_INTERNAL_FPCONV file and get the following compliation error:

fpconv.c:205:6: error: redefinition of ‘fpconv_init’
 void fpconv_init()
      ^~~~~~~~~~~
In file included from fpconv.c:36:0:
fpconv.h:10:20: note: previous definition of ‘fpconv_init’ was here
 static inline void fpconv_init()
                    ^~~~~~~~~~~
Makefile:90: recipe for target 'fpconv.o' failed
make[1]: *** [fpconv.o] Error 1

Indeed, fpconv_init is defined in both fpconv.c and fpconv.h.
A fix could be undefining fpconv_init() in fpconv.c under the same flag.

What do you think?

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