こんにちわ。
Vine Linux 2.1.5 で以下のようなプログラムをコンパイル
実行したところ、Segmentation fault が発生しました。
#include <stdio.h>
int main()
{
char buff[1024];
strcpy(buff, "abcdefg\n");
vfprintf(stdout, "Result is %s\n", buff);
return(0);
}
gdb に寄りますと、
1259 vfprintf.c: そのようなファイルやディレクトリはありません.
in vfprintf.c
との事ですが、これは何かライブラリをリンクする必要があるので
しょうか。
gcc -v の結果は
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
です。
よろしくお願いいたします。
--
HONKYOU Tadashi mailto:honky _at_ geocities.co.jp
Follow-Ups:
- [fol] Re: vfprintf.c no such file or directoryShigehiko SASAKI
- Prev by Date: [fol] GUI アプリ起動時のスピードが遅い件
- Next by Date: [fol] vfprintf.c no such file or directory
- Previous by thread: [fol] Re: GUI アプリ起動時のスピードが遅い件
- Next by thread: [fol] Re: vfprintf.c no such file or directory
- Indexes:[Main][Thread]