g++-4.7 -Wall -fexceptions -g -std=c++11 -lpthread -c /home/olivier/codeblocks_projects/essai1/main.cpp -o obj/Debug/main.o
It looks like you added
-lpthread to the "Other options" tab, however, this is linker related (and the "Other options" tab is for compile time options). Remove it, then under the "Linker settings" tab, add
pthread to link libraries.
I understand very little to these lines. My past C++ experience was exclusively on Microsoft Visual Studio, where I simply ignored what was done in the background when clicking the build button.
I would recommend doing some background reading on the
compile ->
link process, if you are unfamiliar with it.
* I plugged the PPA and made a sudo apt-get update. The system actually downloaded some stuff from the new PPA but CodeBlock is still the 10.05. What did I miss?
I am relatively new to Ubuntu, but if I had to guess, this may be a 32 / 64 bit issue. I think that PPA only has 32 bit packages, so you will probably have to uninstall your current Code::Blocks, then specifically install the 32 bit package. ( -- Can any other Ubuntu users confirm this?)
* BUT: This multithread project hangs when starting the thread.
... technically, I do not think it should even have been able to compile... but who am I to argue with GCC
.
By the way, all the directions I have been giving you have been for global settings. In the long run, it is better practice to use
project settings (except for the toolchain executables, which must be global... per-project toolchain executables makes no sense).