是的 但是现在生成可执行文件时出现了错误
root@ubuntu:~/work/qt5.6/ping# make
g++ -m64 -Wl,-O1 -o ping main.o mainwindow.o moc_mainwindow.o -L/usr/lib/x86_64-linux-gnu -lQtGui -lQtCore -lpthread
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
mainwindow.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [ping] Error 1
是的 但是现在生成可执行文件时出现了错误
root@ubuntu:~/work/qt5.6/ping# make
g++ -m64 -Wl,-O1 -o ping main.o mainwindow.o moc_mainwindow.o -L/usr/lib/x86_64-linux-gnu -lQtGui -lQtCore -lpthread
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mainwindow.o: Relocations in generic ELF (EM: 40)
mainwindow.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [ping] Error 1
举报