Xcode4 で古いプロジェクトを使う
Xcodeの旧バージョンで作成したCommand line プログラムをXcode4で稼働させると、MallocやAllocのエラーで、cinやgetlineを受け付けなくなる。
詳しいことは追求していないが、以下のようにすると回避できる。
- xcode4で新規にcommandlineプログラムのプロジェクトを作成する。
- 旧バージョンで作成したプログラムのファイルをすべてこのプロジェクトに登録する。
- コンパイル
I encountered the error message such as "Malloc error" during inputing from keyboard when I run my command-line-program compiled by Xcode 4. The program was generated by older version Xcode.
I tried to search solution by googling in the WEB, but none of them were useful. I recommend that to make new project of the command line program is helpful. After copying all the files into this new project, the program works well.
Good Luck!