Skip to main content

Thread: expected specifier-qualifier-list


can fix these files there have trying compile spalah flash form on year now.

these errors get:

in file included spa-draw-area.h:28:0,
main.c:22:
spa-svg.h:54:5: error: expected specifier-qualifier-list before ‘artbpath’
spa-svg.h:79:3: warning: data definition has no type or storage class
spa-svg.h:79:3: warning: type defaults ‘int’ in declaration of ‘class’
spa-svg.h:80:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
spa-svg.h:81:34: warning: type defaults ‘int’ in declaration of ‘artbpath’
spa-svg.h:81:48: error: expected ‘)’ before ‘*’ token


, code:

code:
#ifndef  __spa_svg_h__ #define __spa_svg_h__  /*  *    spalah svg args parser 0.01  *  *  * authors:  *   anatoly podlesnuk <beerubeer@ukr.net>  *  * copyright (c) 2004 anatoly podlesnuk  *  * released under gnu gpl, read file 'copying' more information  */  #include <glib.h>  //#include <gtk/gtk.h> #include <gnome.h> //#include <libxml/parser.h>  #ifdef __cplusplus extern "c" { #endif                /* __cplusplus */    // #define default_resolution (96.0)   //#define cm_to_pixels(cm) (cm/2.54*resolution)   //#define mm_to_pixels(mm) (mm/25.4*resolution)   //#define pt_to_pixels(pt) (pt/72*resolution)    typedef struct _spasvgargs spasvgargs;    struct _spasvgargs   {     double width;     double height;     double x,       y,       x2,       y2;     double stroke_width;     double affine[6];     double font_size;     gchar *font_family;     gchar *name,      *transform,      *flash_transform,      *flash_transform_name,      *text;     gchar *id;     guint rgba_stroke,       rgba_fill;     artbpath *path;     double a_begin,       a_dur;     double a_from,       a_to;     //ghashtable *args;   };    spasvgargs *spa_svg_svgargs_new (spasvgargs * svgparent);  #define default_resolution 96.0    enum   {     spa_cm,     spa_mm,     spa_pt   };    void spa_svg_parse_transform (gchar * value, double *affine);   double spa_svg_value_to_double (gchar * value);   gboolean spa_svg_set_resolution (double resolution);   double spa_svg_get_resolution (void);   double spa_svg_value_to_pixels (gint units, double value);    class;      artbpath * sp_svg_read_path (const char *str);   char *sp_svg_write_path (const artbpath, ... *bpath);  #ifdef __cplusplus } #endif                /* __cplusplus */ #endif                             /*__spa_svg_h__*/


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] expected specifier-qualifier-list


Ubuntu

Comments