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 under GCC5+ #6

Open
ZHOUYue67 opened this issue Mar 8, 2016 · 3 comments
Open

Compilation issue under GCC5+ #6

ZHOUYue67 opened this issue Mar 8, 2016 · 3 comments

Comments

@ZHOUYue67
Copy link
Contributor

see: https://sourceforge.net/p/freeimage/discussion/36110/thread/605ef8e4/
short version: LibWebP does not compile under c11 which is GCC5+'s default mode.

resolutions:

  1. modify /ext/rfreeimage/extconf.rb, add -std=gnu89 to CFLAGS
    or
  2. patch freeimage/LibWebP source code

simple workaround for rfreeimage users until this issue is resolved:
CFLAGS=-std=gnu89 gem install rfreeimage

@nanne007
Copy link

+1

@jicong
Copy link

jicong commented Apr 1, 2017

+2

@niujixiao
Copy link

vendor/FreeImage/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c
vendor/FreeImage/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c
R“” is reserved word in c++11

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

4 participants