Магия |
Здравствуйте, гость ( Вход | Регистрация )
Магия |
mettamo |
30.11.2009, 17:32
Сообщение
#1
|
Студент Группа: Участник Сообщений: 43 Регистрация: 22.10.2009 Пользователь №: 1173 Спасибо сказали: 0 раз(а) Репутация: 0 |
Здравствуйте, я столкнулся с такой проблемкой написал программку, все пашет, все окай, переношу ее на бук там компилю и она работает совсем не так как на компьютере, в отладчике пытался найти косяк, отладчик даже не останавливает в указаном месте, в чем дело как с этим разобраться?
|
|
|
Litkevich Yuriy |
30.11.2009, 20:07
Сообщение
#2
|
разработчик РЭА Группа: Сомодератор Сообщений: 9669 Регистрация: 9.1.2008 Из: Тюмень Пользователь №: 64 Спасибо сказали: 807 раз(а) Репутация: 94 |
|
|
|
mettamo |
30.11.2009, 20:39
Сообщение
#3
|
Студент Группа: Участник Сообщений: 43 Регистрация: 22.10.2009 Пользователь №: 1173 Спасибо сказали: 0 раз(а) Репутация: 0 |
у меня того не пишет Ошибка заключается в том что при запуске в 32 битной версии работает только поиск в глубину, хотя в 64 все работает при компиляции выдает предупреждения g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o mainwindow.o mainwindow.cpp /usr/include/qt4/QtCore/qvector.h: In member function ‘void MainWindow::on_pushButton_clicked()’: /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here /usr/include/qt4/QtCore/qvector.h:315: warning: dereferencing pointer ‘pretmp.1585’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:315: warning: dereferencing pointer ‘pretmp.1585’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:315: warning: dereferencing pointer ‘pretmp.1585’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:315: warning: dereferencing pointer ‘pretmp.1585’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:374: warning: dereferencing pointer ‘pretmp.1585’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:374: warning: dereferencing pointer ‘pretmp.1585’ does break strict-aliasing rules cc1plus: note: initialized from here /usr/include/qt4/QtCore/qlist.h: In member function ‘void MainWindow::BreadthSearch(int, int)’: /usr/include/qt4/QtCore/qlist.h:340: warning: ‘ND.GNode::Cost’ is used uninitialized in this function mainwindow.cpp:315: note: ‘ND.GNode::Cost’ was declared here /usr/include/qt4/QtCore/qvector.h: In member function ‘void MainWindow::DeepSearch(int, int)’: /usr/include/qt4/QtCore/qvector.h:528: warning: ‘ND.GNode::Cost’ may be used uninitialized in this function mainwindow.cpp:257: note: ‘ND.GNode::Cost’ was declared here /usr/include/qt4/QtCore/qvector.h: In member function ‘void MainWindow::on_Button_find_clicked()’: /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here /usr/include/qt4/QtCore/qvector.h:315: warning: dereferencing pointer ‘pretmp.2868’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:315: warning: dereferencing pointer ‘pretmp.2868’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:315: warning: dereferencing pointer ‘pretmp.2868’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:315: warning: dereferencing pointer ‘pretmp.2868’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:374: warning: dereferencing pointer ‘pretmp.2868’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:374: warning: dereferencing pointer ‘pretmp.2868’ does break strict-aliasing rules cc1plus: note: initialized from here g++ -Wl,-O1 -o graf gnode.o main.o mainwindow.o moc_mainwindow.o -L/usr/lib -lQtGui -lQtCore -lpthread может в этом дело, если в этом то, что он хочет? |
|
|
Текстовая версия | Сейчас: 16.1.2025, 1:54 |