ラベル c の投稿を表示しています。 すべての投稿を表示
ラベル c の投稿を表示しています。 すべての投稿を表示

2010年1月22日金曜日

error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token

void multiMatrixDouble3(double x[][3], double y)




void multiMatrixDouble3(double x[][3], double y);

error: incompatible types when returning type ‘double (*)[3]’ but ‘double’ was expected

c言語では配列を返すことはできない。

関数から配列を返す方法

passing argument 1 of ‘printf’ makes pointer from integer without a cast

 warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast
/usr/include/stdio.h:339: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
warning: format not a string literal and no format arguments

printf('\n');


printf("\n");

undefined reference to `pow'

gcc file_name.c



gcc file_name.c -lm


http://ameblo.jp/oregano-blog/entry-10285148682.html

array size missing in ‘y’

double y[][2]



double y[2][2]

warning: conflicting types for ‘determinant3’

void determinant(double x[][N],double a);


void determinant3(double x[][N],double a){
}




void determinant3(double x[][N],double a);


void determinant3(double x[][N],double a){
}


error: expected expression before ‘>’ token

if(k=>N) k = k - N;




if(k>=N) k = k - N;