i'm writing a header , from define a struct.
The question is , how declare this struct in my main.c .
function.c
function.h
main.c
Errors :
error: variable `d' has initializer but incomplete type
The question is , how declare this struct in my main.c .
function.c
Code:
struct data{
size_t n;
gsl_vector *y;
};
Code:
/*here should be the struc data*/ ?????
Code:
#include "function.h"
struct data d = { n, y };
error: variable `d' has initializer but incomplete type
Comment