Page 1 of 1

error when compiling SILLY in win32 xp VC 2008

Posted: Wed Sep 21, 2011 08:51
by umen
Hi
im in the process to recompile all the dependces the CEGUI is using to :Multi-threaded Debug DLL (/MDd)
already recompile all the free dependences and now the last SILLY lib . and here im have compilation error :

Code: Select all

1>SILLYPNGImageLoader.cpp
1>d:\cpp\libs\silly\silly-0.1.0\silly-0.1.0\src\loaders\sillypngimageloader.cpp(69) : error C2027: use of undefined type 'png_struct_def'
1>        d:\cpp\libs\silly\silly-0.1.0\silly-0.1.0\extlib\libpng154\include\png.h(819) : see declaration of 'png_struct_def'
1>d:\cpp\libs\silly\silly-0.1.0\silly-0.1.0\src\loaders\sillypngimageloader.cpp(69) : error C2227: left of '->jmpbuf' must point to class/struct/union/generic type


in the function :

Code: Select all

void PNG_error_function(png_structp png_ptr,
                        png_const_charp error)
{
    //  printf("PNG Error: %s\n", error);
    // copied from libpng's pngerror.cpp
    jmp_buf buf;
    memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));
    longjmp(buf, 1);
}


when i remark the :

Code: Select all

 memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));
    longjmp(buf, 1);


every thing is working fine .
im using libpng154 .

Re: error when compiling SILLY in win32 xp VC 2008

Posted: Wed Sep 21, 2011 10:20
by umen
I will answer my self , simple . CEGUI ZILLY lib using libpng 1.48 version .

Re: error when compiling SILLY in win32 xp VC 2008

Posted: Wed Sep 21, 2011 23:05
by Mikademus
I upvoted you for your very quick answer to your own question! :hammer: