楼上的高手,我想请教一下,我试了你的办法,但是编译时候显示这样的3个错误,是为什么啊?
1:internal compiler error、
2:while executing in file 'CException.c' line: 3094
3:Creation Time Description Resource Path Location Type
1277776600939 (compiling '?0' in 'widget.cpp') widget.cpp /test_ip line 53 C/C++ Problem
我的程序是这样的:
QString str;
str = QNetworkInterface().allAddresses().at(2).toString();
ui->label_2->setText(str);
qDebug()<<str<<endl;
我把at()里面的参数2换成1,0,也是同样的错误。
高手,还请救救急!