お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2011-01-23 09:44:49

syana
新しいメンバ
登録日: 2011-01-23

error: stddef.h について

ubuntu初心者です。
ubuntu9.04をインストールしてopacity analyzerというプログラムを入れたいのですが、

gcc -I/usr/local/pgplot -I/usr/local/uvf_difmap/include -DCOLOR -O3  -c opacity_plot.c
opacity_plot.c:10 から include されたファイル中:
/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
/usr/include/stdio.h:75 から include されたファイル中,
                 opacity_plot.c:10 から:
/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from /usr/include/stdio.h:75,
                 from opacity_plot.c:10:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:489: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/libio.h:491: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from opacity_plot.c:10:
/usr/include/stdio.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’
                ・
                ・
                ・
                ・
/usr/include/bits/stdlib.h:138: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_chk_warn’
/usr/include/bits/stdlib.h:145: error: expected ‘,’ or ‘;’ before ‘wcstombs’
opacity_plot.c: In function ‘MAIN__’:
opacity_plot.c:46: 警告: incompatible implicit declaration of built-in function ‘malloc’
make: *** [opacity_plot.o] エラー 1


といったエラーが解決できません。sudo apt-get install build-essentialはしてみたのですが、それでもうまくいきませんでした。環境変数があってないのでしょうか?

オフライン

 

#2 2011-01-23 11:37:44

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: error: stddef.h について

gccのバージョンと、opacity analyzerのソースの在り処を明記してみてください。

オフライン

 

#3 2011-01-23 12:17:32

syana
新しいメンバ
登録日: 2011-01-23

Re: error: stddef.h について

失礼しました。gccは最新の4.3.3でソースは/usr/local/srceの中に入っています。

オフライン

 

#4 2011-01-23 18:05:42

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: error: stddef.h について

syana による投稿:

ソースは/usr/local/srceの中に入っています。

ではなく、opacity analyzerのソースをどこからダウンロードしたのですか? という質問です。

オフライン

 

#5 2011-01-23 18:15:41

syana
新しいメンバ
登録日: 2011-01-23

Re: error: stddef.h について

http://163.209.90.1/users/kameno/weblog/4f0c6/Opacity_Analyzer_updated.htmlとhttp://163.209.90.1/users/kameno/からダウンロードしてきました。

オフライン

 

#6 2011-01-23 18:58:20

syana
新しいメンバ
登録日: 2011-01-23

Re: error: stddef.h について

すいません。意味を取り違えてました。

http://163.209.90.1/users/kameno/weblog/4f0c6/Opacity_Analyzer_updated.html


http://163.209.90.1/users/kameno/

からダウンロードしました。

オフライン

 

#7 2011-01-24 04:13:35

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: error: stddef.h について

opacity analyzerを最近のLinuxディストリでmakeされた方いるのですか?
ソースの日付を見ると、gcc-4.Xでは無理のようですし、gcc-3.3か3.4、それでもダメなら、gcc-2.95でトライしてみてください。

オフライン

 

Board footer

Powered by FluxBB