- 论坛徽章:
- 0
|
solaris 下一个C++程序编译错误,请帮忙看看
请大家看清楚,是大写的CC,不是小写的cc,CC是可以编译C++的。
请看下面两个不同的区别
----------------------------- cc ------------------------
$ cc -o test2 test.cpp
ld: fatal: file test.cpp: unknown file type
ld: fatal: File processing errors. No output written to test2
----------------------------- CC ------------------------
$ CC -o test2 test.cpp
"/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
4 Error(s) detected. |
|