全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2560
推到 Plurk!
推到 Facebook!

c++builder 2009 #include <iostream> 問題

尚未結案
huapuyu
一般會員


發表:1
回覆:1
積分:0
註冊:2009-02-19

發送簡訊給我
#1 引用回覆 回覆 發表時間:2009-02-20 00:55:16 IP:58.37.xxx.xxx 訂閱
在c builder 2009中使用iostream
源代碼如下
#include
using namespace std;

int main()
{
return 0;
}
編譯運行錯誤,ide自動打開iosfwd文件,并定位到typedef fpos<_Mbstatet> streampos;
想問問是什麽原因,謝謝!!!

錯誤信息如下:
[BCC32 Error] iosfwd(126): E2451 Undefined symbol '_Mbstatet'
[BCC32 Error] iosfwd(126): E2299 Cannot generate template specialization from 'fpos<_Statetype>'
[BCC32 Error] iosfwd(126): E2040 Declaration terminated incorrectly
[BCC32 Error] iosfwd(129): E2257 , expected
[BCC32 Error] iosfwd(139): E2139 Declaration missing ;
[BCC32 Error] iosfwd(254): E2238 Multiple declaration for 'char_traits::int_type'
[BCC32 Error] iosfwd(136): E2344 Earlier declaration of 'char_traits::int_type'
[BCC32 Error] iosfwd(260): E2238 Multiple declaration for 'char_traits::assign(wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(141): E2344 Earlier declaration of 'char_traits::assign(wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(265): E2238 Multiple declaration for 'char_traits::eq(const wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(146): E2344 Earlier declaration of 'char_traits::eq(const wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(270): E2238 Multiple declaration for 'char_traits::lt(const wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(151): E2344 Earlier declaration of 'char_traits::lt(const wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(276): E2238 Multiple declaration for 'char_traits::compare(const wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(156): E2344 Earlier declaration of 'char_traits::compare(const wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(283): E2238 Multiple declaration for 'char_traits::length(const wchar_t *)'
[BCC32 Error] iosfwd(167): E2344 Earlier declaration of 'char_traits::length(const wchar_t *)'
[BCC32 Error] iosfwd(290): E2238 Multiple declaration for 'char_traits::copy(wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(176): E2344 Earlier declaration of 'char_traits::copy(wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(298): E2238 Multiple declaration for 'char_traits::find(const wchar_t *,unsigned int,const wchar_t &)'
[BCC32 Error] iosfwd(187): E2344 Earlier declaration of 'char_traits::find(const wchar_t *,unsigned int,const wchar_t &)'
[BCC32 Error] iosfwd(305): E2238 Multiple declaration for 'char_traits::move(wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(197): E2344 Earlier declaration of 'char_traits::move(wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(312): E2238 Multiple declaration for 'char_traits::assign(wchar_t *,unsigned int,wchar_t)'
[BCC32 Error] iosfwd(212): E2344 Earlier declaration of 'char_traits::assign(wchar_t *,unsigned int,wchar_t)'
[BCC32 Error] iosfwd(323): E2238 Multiple declaration for 'char_traits::to_int_type(const wchar_t &)'
[BCC32 Error] iosfwd(227): E2344 Earlier declaration of 'char_traits::to_int_type(const wchar_t &)'
[BCC32 Error] iosfwd(334): E2238 Multiple declaration for 'char_traits::eof()'
[BCC32 Error] iosfwd(238): E2344 Earlier declaration of 'char_traits::eof()'
[BCC32 Error] iosfwd(279): E2316 'wmemcmp' is not a member of 'std'
[BCC32 Error] iosfwd(293): E2316 'wmemcpy' is not a member of 'std'
[BCC32 Error] iosfwd(300): E2316 'wmemchr' is not a member of 'std'
[BCC32 Error] iosfwd(308): E2316 'wmemmove' is not a member of 'std'
[BCC32 Error] iosfwd(314): E2316 'wmemset' is not a member of 'std'
[BCC32 Error] iosfwd(355): E2238 Multiple declaration for 'char_traits::assign(char &,const char &)'
[BCC32 Error] iosfwd(141): E2344 Earlier declaration of 'char_traits::assign(char &,const char &)'
[BCC32 Error] iosfwd(360): E2238 Multiple declaration for 'char_traits::eq(const char &,const char &)'
[BCC32 Error] iosfwd(146): E2344 Earlier declaration of 'char_traits::eq(const char &,const char &)'
[BCC32 Error] iosfwd(365): E2238 Multiple declaration for 'char_traits::lt(const char &,const char &)'
[BCC32 Error] iosfwd(151): E2344 Earlier declaration of 'char_traits::lt(const char &,const char &)'
[BCC32 Error] iosfwd(371): E2238 Multiple declaration for 'char_traits::compare(const char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(156): E2344 Earlier declaration of 'char_traits::compare(const char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(378): E2238 Multiple declaration for 'char_traits::length(const char *)'
[BCC32 Error] iosfwd(167): E2344 Earlier declaration of 'char_traits::length(const char *)'
[BCC32 Error] iosfwd(385): E2238 Multiple declaration for 'char_traits::copy(char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(176): E2344 Earlier declaration of 'char_traits::copy(char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(393): E2238 Multiple declaration for 'char_traits::find(const char *,unsigned int,const char &)'
[BCC32 Error] iosfwd(187): E2344 Earlier declaration of 'char_traits::find(const char *,unsigned int,const char &)'
[BCC32 Error] iosfwd(400): E2238 Multiple declaration for 'char_traits::move(char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(197): E2344 Earlier declaration of 'char_traits::move(char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(197): E2228 Too many error or warning messages
zhouying82
高階會員


發表:150
回覆:272
積分:189
註冊:2004-03-16

發送簡訊給我
#2 引用回覆 回覆 發表時間:2009-02-21 09:40:35 IP:222.70.xxx.xxx 訂閱
[code cpp]
#include //只有一个
using namespace std;// 删除此行,应该可以了。

int main()
{
dosomething //加上你要实现的代码
return 0;
}

[/code]
------
断断续续的学了几年,还是一个初学者,永远支持Delphi !
編輯記錄
zhouying82 重新編輯於 2009-02-21 09:42:35, 註解 無‧
zhouying82 重新編輯於 2009-02-21 09:43:17, 註解 無‧
huapuyu
一般會員


發表:1
回覆:1
積分:0
註冊:2009-02-19

發送簡訊給我
#3 引用回覆 回覆 發表時間:2009-02-24 22:31:31 IP:58.37.xxx.xxx 訂閱
還是不行啊,好像一用std就報錯!
zhouying82
高階會員


發表:150
回覆:272
積分:189
註冊:2004-03-16

發送簡訊給我
#4 引用回覆 回覆 發表時間:2009-02-25 16:37:28 IP:218.80.xxx.xxx 訂閱
你在重新安装一下CB,试试看,不应该会有此类问题的啊,对了,最好系统里面就保留这一个版本,其他版本的CB 不要装。
------
断断续续的学了几年,还是一个初学者,永远支持Delphi !
系統時間:2024-11-23 3:29:22
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!