C 编译错误,无法找到';布拉辛特';

C 编译错误,无法找到';布拉辛特';,c,gcc,blas,C,Gcc,Blas,我想使用GotoBLAS2对两个向量求和(z=x+y,其中x和y是两个长度相同的向量)。我使用以下代码: #include <stdio.h> #include <cblas.h> #include <common.h> double x[] = {1,2,3}; double y[] = {4,5,6}; void main() { int n,i,x_int,y_int=5,a; n=3;x_int=1;y_int=1;a=1; cblas_dzxpy

我想使用GotoBLAS2对两个向量求和(z=x+y,其中x和y是两个长度相同的向量)。我使用以下代码:

#include <stdio.h>
#include <cblas.h>
#include <common.h>

double x[] = {1,2,3};
double y[] = {4,5,6};

void main()
{
int n,i,x_int,y_int=5,a;
n=3;x_int=1;y_int=1;a=1;
cblas_dzxpy(n, a, &x[0], x_int, &y[0], y_int);
for(i=0;i<n;i++) printf("x[%d] = %g\n", i, x[i]);
}
我多次出现以下错误:

../GotoBLAS2/cblas.h:270:45: error: unknown type name 'blasint'
似乎我必须链接到gcc的东西,但我不知道什么和如何。 非常感谢您的帮助。
谢谢你的快速回复。 根据你的暗示,我发现了问题所在。 实际上,blasint是在common.h中定义的,因为在我的代码
#include
中,blasint是在
#include
之前定义的,所以gcc找不到blasint的定义


再次感谢

您能否查看cblas.h中的
blasint
类型是如何定义的?也许有一个编译器定义你需要打开它才能工作。
../GotoBLAS2/cblas.h:270:45: error: unknown type name 'blasint'