Sunday, August 31, 2008, 07:09 PM
Posted by Administrator
SO: All posixPosted by Administrator
Type: Resource Compilation
Language: C\C++
Title: XPM compile warning
Recently with new versions of gcc, when trying to compile an image XPM, at compile time you receive the following error:
warning: deprecated conversion from string constant to `char*
Solution:
This is because some image editor save the xpm images as struct of char pointers, for remove warning simply edit a XPM image and change the struc as follows:
/* XPM */
static char * myimage_xpm[] = {
to
static const char * myimage_xpm[] = {




( 2.9 / 522 )

Calendar



