Je venais de penser que j'avais résolu a problem, mais il semblait en avoir une autre - ou du moins le même problème sous une autre forme. Maintenant, quand j'essaie de tout reconstruire comme suggéré dans la réponse à cette question, tout Qt Creator montre dans les problèmes de construction est une ligne collect2: ld returned 1 exit status
Référence non définie aux fonctions membres
Voici une partie de la sortie de la compilation que je pense pourrait être pertinent:
Running build steps for project Othello-cmd...
Starting: "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" clean -w
[snipped]
C:/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Release clean
Could Not Find C:\Users\Amos Ng\My Dropbox\School\College\2010.. Fall\CS 3A\Othello-cmd-build-desktop\debug\main.o //this was in red
mingw32-make[1]: Entering directory `C:/Users/Amos Ng/My Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd-build-desktop'
del release\main.o release\board.o release\player.o release\referee.o release\misc.o release\humanplayer.o release\computerplayer.o release\chatter.o release\chatserver.o release\location.o
mingw32-make[1]: Leaving directory `C:/Users/Amos Ng/My Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd-build-desktop'
mingw32-make: Leaving directory `C:/Users/Amos Ng/My Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd-build-desktop'
Could Not Find C:\Users\Amos Ng\My Dropbox\School\College\2010.. Fall\CS 3A\Othello-cmd-build-desktop\release\main.o
//these next 3 lines are in blue
The process "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited normally.
Configuration unchanged, skipping qmake step.
Starting: "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directory `C:/Users/Amos Ng/My Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd-build-desktop'
[snipped]
//A bunch of lines similar to
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\2010.05\qt\include\QtCore" -I"c:\Qt\2010.05\qt\include" -I"c:\Qt\2010.05\qt\include\ActiveQt" -I"debug" -I"\\psf\Dropbox\School\College\2010.. Fall\CS 3A\Othello-cmd" -I"." -I"c: "filepath of .o file" "filepath of .cpp file"
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -Wl -o debug\Othello-cmd.exe object_script.Othello-cmd.Debug -L"c:\Qt\2010.05\qt\lib" -lQtCored4
//everything's red starting here...
./debug\board.o://psf/Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd/board.cpp:29: undefined reference to `OPiece::OPiece(int)'
./debug\board.o://psf/Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd/board.cpp:39: undefined reference to `OPiece::flip()'
./debug\board.o://psf/Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd/board.cpp:76: undefined reference to `OPiece::display()'
./debug\board.o://psf/Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd/board.cpp:110: undefined reference to `OPiece::display()'
./debug\board.o://psf/Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd/board.cpp:159: undefined reference to `OPiece::OPiece(int)'
//couple more lines just like the above
collect2: ld returned 1 exit status
//...finally things are black again
mingw32-make[1]: Leaving directory `C:/Users/Amos Ng/My Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd-build-desktop'
mingw32-make: Leaving directory `C:/Users/Amos Ng/My Dropbox/School/College/2010.. Fall/CS 3A/Othello-cmd-build-desktop'
//everything's red again
mingw32-make[1]: *** [debug\Othello-cmd.exe] Error 1
mingw32-make: *** [debug] Error 2
The process "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project Othello-cmd (target: Desktop)
When executing build step 'Make'
Des idées sur ce qui pourrait causer cette erreur?
EDIT: Je voudrais également souligner que je ne trouve « main.o » dans le répertoire de débogage ...
SOLUTION (pas vraiment): Je recompilé tout Netbeans à la place (sur un Mac cependant, alors peut-être que l'éditeur de liens était différent ...). Maintenant, le programme fonctionne bien ... au revoir Qt Creator
Je suppose que vous avez peut-être raison! Je n'ai mis aucune directive d'inclusion dans aucun espace de noms (j'en ai juste un, donc je suis sacrément sûr), mais je ne peux pas trouver où tous mes fichiers .o sont à! Apparemment, \ Othello-cmd-build-desktop \ debug contenait les anciens fichiers .o; Après les avoir tous supprimés, la construction/reconstruction du projet ne les a pas fait réapparaître. Je ne vois vraiment pas où ils peuvent être ... – wrongusername
J'ai juste essayé de supprimer le dossier othello-cmd-build-desktop. Rien ne semble avoir changé, sauf dans l'ordre de certains messages d'erreur, et que je reçois un seul "Impossible de trouver C: \ Utilisateurs \ Amos Ng \ Mon Dropbox \ Ecole \ Collège \ 2010 .. Automne \ CS 3A \ Othello- cmd-build-desktop \ release \ main.o "message maintenant au lieu des deux avant. – wrongusername
aww great ... Je viens de me rendre compte qu'après avoir supprimé le dossier, il n'y a plus de dossier othello-cmd-build-desktop. Où diable sont tous les fichiers .o ??? – wrongusername