ssolie wrote:I don't think you understand. As long as "g++ -v" returns "Thread model: single" the C++ language itself and the C++ standard library are not thread aware. You will mistakenly believe everything is fine until a C++ exception is thrown in one thread and is caught in another thread (i.e. undefined behaviour).Raziel wrote:What if i link pthread (and only pthread) statically rather than as a shared object?
The easiest workaround is to compile your C++ project with no threading support. Another workaround is to turn off C++ exceptions and RTTI support (both optional language features).
If anybody would like to work on creating a C++ compiler which is thread aware, the source code is available on SourceForge.

So that means even if a static build (contrary to a shared build) does not throw errors *right now*, it is to expected it *will* throw errors later *if* the program uses threading?
Ill check the options you provided.
Thank you very much again