- 论坛徽章:
- 15
|
本帖最后由 yulihua49 于 2013-03-11 11:01 编辑
tyc611 发表于 2007-08-04 17:56 ![]()
[ 本帖最后由 tyc611 于 2007-8-20 21:55 编辑 ]
C++可移植性太差了,这个程序弄到linux,怎么也玩不转:- g++ -c -o aestest.o aestest.cpp //main.cpp改aestest.cpp了
- In file included from aestest.cpp:12:
- AesArrays.h: In function ‘void dumpData(std::ostream&, const char*, T*, size_t, size_t)’:
- AesArrays.h:36: 错误:‘ios_base’未声明
- AesArrays.h:36: 错误:expected ‘;’ before ‘state’
- AesArrays.h:41: 错误:expected unqualified-id before string constant
- AesArrays.h:41: 错误:expected ‘;’ before string constant
- AesArrays.h:48: 错误:expected unqualified-id before string constant
- AesArrays.h:48: 错误:expected ‘;’ before string constant
- AesArrays.h:51: 错误:‘state’在此作用域中尚未声
复制代码 难怪坛子里老是有人扁C++,这类通用的软件最好不用C++。。。。。
就是这个:- ios_base::fmtflags state = os.flags(ios::hex);
复制代码 怎么改? |
|