- 369 名前:sakyo mailto:sage [2007/12/24(月) 01:33:36 ]
- c++ with liboctaveで構造体内で行列の宣言をしたらエラーが出るのですが、解決策はあるのですか?
$ gcc -I/usr/include/octave-2.9.9 -L/usr/lib64/octave-2.9.9 -loctave -lcruft sample.cpp sample.cpp:9: error: expected identifier before numeric constant sample.cpp:9: error: expected ‘,’ or ‘...’ before numeric constant ****sample.cpp************************ #include <iostream> #include <octave/config.h> #include <octave/Matrix.h> typedef struct { int aa ; int bb ; Matrix AA(10,10) ; } structure; structure STU ; main() { return 0; } **************************************
|

|