[转载] about header file# Unix - 噫吁兮,危乎高哉
t*o
1 楼
【 以下文字转载自 Programming 讨论区 】
【 原文由 tsingditto 所发表 】
这个header有问题么?
为什么每次include的时候,都说我:
'struct CSCMatrix' declared inside parameter list,
its scope is only this definition or declaration, which is probably not what
you want
#ifndef CAPLOT_H
#define CAPLOT_H
typedef struct
{
int nrow;
int ncol;
int nnz;
int *colptr;
int *rowind;
double *nzval;
double *dx;
double *dy;
} CSCMatrix;
extern double bmsize(int *rind, int *cptr,int m,int n);
extern void scale(struct CSCMatrix *csc);
extern void SAnetSVD(
【 原文由 tsingditto 所发表 】
这个header有问题么?
为什么每次include的时候,都说我:
'struct CSCMatrix' declared inside parameter list,
its scope is only this definition or declaration, which is probably not what
you want
#ifndef CAPLOT_H
#define CAPLOT_H
typedef struct
{
int nrow;
int ncol;
int nnz;
int *colptr;
int *rowind;
double *nzval;
double *dx;
double *dy;
} CSCMatrix;
extern double bmsize(int *rind, int *cptr,int m,int n);
extern void scale(struct CSCMatrix *csc);
extern void SAnetSVD(