2010-03-25から1日間の記事一覧

Intel Compilerが2次元配列を動的に取るmallocを食べてくれないでござる

gccではいけるのに、何故がIntel Compilerでは食ってくれない。 #include <stdlib.h> int main () { double **X; int i; X = (double**) malloc (sizeof (double*) * 10); for (i = 0; i < 10; i++) X [i] = (double*) malloc (sizeof (double) * 10); return 0; }でい</stdlib.h>…