DJGPP環境:都是官方最新版
我的寫法應該很合乎ANSI C++,應該是不會出錯。
當使用DJGPP/GPP 3.2.2,編譯下列的源碼:
#include
#include
using namespace std;
int main(void)
{
basic_string uls;
uls+=static_cast(0);
cout << uls;
return 0;
}
在linker的地方過不了,但如果用GPP 2.95.3,就沒問題了。
這個問題困擾我好久了,從bloodshed得知最好要重新編譯GCC。
DJGPP官方版的readme.djgpp,我也照著步驟做了,但在djmake.sh就停掉了
不知道哪位先進能幫忙解答,謝謝!
我的寫法應該很合乎ANSI C++,應該是不會出錯。
當使用DJGPP/GPP 3.2.2,編譯下列的源碼:
#include
#include
using namespace std;
int main(void)
{
basic_string uls;
uls+=static_cast(0);
cout << uls;
return 0;
}
在linker的地方過不了,但如果用GPP 2.95.3,就沒問題了。
這個問題困擾我好久了,從bloodshed得知最好要重新編譯GCC。
DJGPP官方版的readme.djgpp,我也照著步驟做了,但在djmake.sh就停掉了
不知道哪位先進能幫忙解答,謝謝!
