I'm trying to compile a project and an error (the only error, at that) is being raised in the header file.
error: expected specifier-qualifier-list before ‘draw’
The offending line of code can be found here:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define LNAME 129
#define DNUM 17
typedef struct {
char name[LNAME];
double x[DNUM];
double y[DNUM];
double x_point[DNUM];
double y_point[DNUM];
int draw;
draw = 1; //<< the line GCC references in the error for reference
memset(name, 0, sizeof(name));
memset(x, 0, sizeof(x));
memset(y, 0, sizeof(y));
} Figure;
I'm rather new to C so if anyone can give a little insight I'd appreciate it.
draw = 1;line entirely, even with the comment, which I thought was on theint draw;line. Wow... - chris