Leyart / aseprite

Automatically exported from code.google.com/p/aseprite
0 stars 0 forks source link

Compiler errors with giflib 5.0.5 #308

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
aseprite-0.9.5/src/file/gif_format.cpp: In member function 'virtual bool 
GifFormat::onLoad(FileOp*)':
aseprite-0.9.5/src/file/gif_format.cpp:101:95: error: too few arguments to 
function 'GifFileType* DGifOpenFileName(const char*, int*)'
   UniquePtr<GifFileType, int(*)(GifFileType*)> gif_file(DGifOpenFileName(fop->filename.c_str()),
                                                                                               ^
In file included from 
/home/abuild/rpmbuild/BUILD/aseprite-0.9.5/src/file/gif_format.cpp:31:0:
/usr/include/gif_lib.h:178:14: note: declared here
 GifFileType *DGifOpenFileName(const char *GifFileName, int *Error);
              ^
aseprite-0.9.5/src/file/gif_format.cpp:208:80: error: 'GifLastError' was not 
declared in this scope
               throw base::Exception("Invalid image data (%d).\n", GifLastError());
                                                                                ^
aseprite-0.9.5/src/file/gif_format.cpp: In member function 'virtual bool 
GifFormat::onSave(FileOp*)':
aseprite-0.9.5/src/file/gif_format.cpp:485:98: error: too few arguments to 
function 'GifFileType* EGifOpenFileName(const char*, bool, int*)'
   UniquePtr<GifFileType, int(*)(GifFileType*)> gif_file(EGifOpenFileName(fop->filename.c_str(), 0),
                                                                                                  ^
In file included from 
/home/abuild/rpmbuild/BUILD/aseprite-0.9.5/src/file/gif_format.cpp:31:0:
/usr/include/gif_lib.h:126:14: note: declared here
 GifFileType *EGifOpenFileName(const char *GifFileName,
              ^
aseprite-0.9.5/src/file/gif_format.cpp:501:74: error: 'MakeMapObject' was not 
declared in this scope
   ColorMapObject* color_map = MakeMapObject(current_palette->size(), NULL);
                                                                          ^
aseprite-0.9.5/src/file/gif_format.cpp:597:89: error: 'EGifPutExtensionFirst' 
was not declared in this scope
       if (EGifPutExtensionFirst(gif_file, APPLICATION_EXT_FUNC_CODE, 11, extension_bytes) == GIF_ERROR)
                                                                                         ^
aseprite-0.9.5/src/file/gif_format.cpp:603:87: error: 'EGifPutExtensionNext' 
was not declared in this scope
       if (EGifPutExtensionNext(gif_file, APPLICATION_EXT_FUNC_CODE, 3, extension_bytes) == GIF_ERROR)
                                                                                       ^
aseprite-0.9.5/src/file/gif_format.cpp:606:76: error: 'EGifPutExtensionLast' 
was not declared in this scope
       if (EGifPutExtensionLast(gif_file, APPLICATION_EXT_FUNC_CODE, 0, NULL) == GIF_ERROR)

Original issue reported on code.google.com by mailaend...@gmail.com on 8 Jan 2014 at 3:49

GoogleCodeExporter commented 9 years ago

Original comment by davidcapello on 18 Aug 2014 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by davidcapello on 18 Aug 2014 at 4:14