Compile problem on Win32
"Frank M. Kromann" <[email protected]> Tue, 14 Oct 2003 13:38:14 -0700
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, When I try to compile libming (from CVS) on win32 I get some warnings and errors: swf4compiler.flex(78) : warning C4013: 'yyunput' undefined; assuming extern returning int lex.swf4.c(728) : error C2371: 'yyunput' : redefinition; different basic types lex.swf4.c(1799) : error C2371: 'yyunput' : redefinition; different basic types swf4compiler.flex(298) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int ' swf4compiler.flex(298) : warning C4024: 'do_unput4' : different types for formal and actual parameter 1 This can be solved by moving #ifndef YY_NO_UNPUT static void yyunput YY_PROTO(( int c, char *buf_ptr )); #endif to a position before #define unput(c) yyunput( c, yytext_ptr ) I also have problems with GIF and PNG support (when compiling php_ming.dll). The functions newSWFDBLBitmap_fromGifInput() and newSWFDBLBitmap_fromPngInput() are declared in ming.h and used in bitmap.c but not defined in any other files. The only solution for now is to disable PNG and GIF support. The GIF support seams to be using GIFLIB. What version are you using ? After a few changes I'm able to compile the CVS version of libming, and this enables the output compression on Win32. - Frank