無題

フォーラム(掲示板)ルール
フォーラム(掲示板)ルールはこちら  ※コードを貼り付ける場合は [code][/code] で囲って下さい。詳しくはこちら
cygwin

無題

#1

投稿記事 by cygwin » 18年前

こんにちわ。
最近、家のパソコンでC言語をやろうと思い
cygwinをいうものをインストールしました。
そして適当にtest.cというファイルを作ってコンパイルしました。
プログラムは次のとおりです。

#include<stdio.h>
int main(void)
{
printf("テスト\n");
return 0;
}

そしたら次のようなエラーメッセージが出てきました。


3 [main] ? 396 init_cheap: Couldn't reserve 3600336 bytes of space for cyg
win's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (396): *** AllocationBase 0x0, Ba
seAddress 0x61820000, RegionSize 0x360000, State 0x10000

4 [main] ? 2640 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (2640): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000

4 [main] ? 1996 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (1996): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000

3 [main] ? 2464 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (2464): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000

4 [main] ? 2980 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (2980): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000

4 [main] ? 2632 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (2632): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000


このエラー文の意味がさっぱり分かりません。
詳しい方いましたらアドバイスお願いします。
また、足りない情報があったら補足しますので
よろしくお願いします。

cygwin

Re:無題

#2

投稿記事 by cygwin » 18年前

少し付け忘れましたが
OSはXPで
実行コマンドは gcc test.c でやりました。
また -o をつけてやってみましたが同じ結果でした。

たかぎ

Re:無題

#3

投稿記事 by たかぎ » 18年前

はっきりとしたことは分かりませんが、多分インストールに失敗しています。

cygwin

Re:無題

#4

投稿記事 by cygwin » 18年前

そう思って1回インストールしなおしたのですが
同じ結果になりました。
やっぱり失敗してるんでしょーか・・・

Justy

Re:無題

#5

投稿記事 by Justy » 18年前

 ダメもとで。

 rebaseパッケージを入れて、

rebaseall
 か
rebaseall -b 0x61000000

 を実行してみて下さい。

cygwin

Re:無題

#6

投稿記事 by cygwin » 18年前

rebaseallを実行してみた所

$ rebaseall
rebaseall: only ash processes are allowed during rebasing
Exit all Cygwin processes and stop all Cygwin services.
Execute ash from Start/Run... or a cmd or command window.
Execute '/bin/rebaseall' from ash.

と表示されました。

出てきた文はよくわからないですが
もう一度Cファイルをコンパイルしても
やっぱり結果は一緒でした。

また全部インストールしなおしたほうがいいんでしょうか?

閉鎖

“C言語何でも質問掲示板” へ戻る