On Wed, Feb 9, 2011 at 8:39 AM, DZhon
<thed...@gmail.com> wrote:
Ok, first of all, gtest doesn`t support QNX as POSIX-system. Please,
add __QNX__ variable for POSIX lists in internal/gtest-port.h
gtest did away with the list of POSIX systems in revision 448.
Also, with QCC (QNX default toolchain) pthreads detection doesnt`work.
Manually adding #include <pthread.h> helps me get gtest works !
Update gtest to a later revision and you only need to add -DGTEST_HAS_PTHREAD=1 to your compiler options to have pthread.h included. If you use the configure script, that can be achieved by giving it the --with-pthreads=yes option.
Finally, QNX QCC doesn`t support tr1 tuple, which can be handled by -
DGTEST_HAS_OWN_TR1_TUPLE.