データ解析ツールoctaveを語ろうat UNIX
データ解析ツールoctaveを語ろう - 暇つぶし2ch369:sakyo
07/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;
}
**************************************


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch