I'm working on Cygwin on Windows XP. When I compile benchmark.cpp with gcc/g++ I get the following error regarding _beginthreadex.
gcc -pthread -c benchmark.cpp
gcc: unrecognized option `-pthread'
In file included from benchmark.cpp:33:
/usr/local/include/quickmp/quickmp.h: In member function `void qmp_internal::ParallelTaskManager::setNumThreads(unsigned int)':
/usr/local/include/quickmp/quickmp.h:544: error: `_beginthreadex' undeclared (first use this function)
/usr/local/include/quickmp/quickmp.h:544: error: (Each undeclared identifier is reported only once for each function it appears in.)
(Note that I'm compiling a copy of benchmark.cpp --- so I edited the
#include "../quickmp"
line.)
I get the same error if I omit the -pthread flag.
Can you help?
Thank you,
David Foster
Deep Photonics Corp