スレッドを立てるまでもない質問雑談スレ36at PROG
スレッドを立てるまでもない質問雑談スレ36 - 暇つぶし2ch109:仕様書無しさん
09/02/09 05:46:26
WindowにCygwinインストールしてみました。

#include<iostream.h>
int main(void){
cout<<"Hellow World!\n";
return 0;
}


$ gcc -o test test.cpp -Wno-deprecated
とすると下記のようなエラーがで出てしまいます。
何が原因でしょうか?

/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccftmtrq.o:hollow.cpp:(.text+0xd): u
ndefined reference to `std::basic_string<char, std::char_traits<char>, std::allo
cator<char> >::size() const'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccftmtrq.o:hollow.cpp:(.text+0x60):
undefined reference to `std::basic_string<char, std::char_traits<char>, std::all
ocator<char> >::operator[](unsigned int) const'


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