Menu

#1 compiling with Cygwin gcc

open
nobody
5
2008-06-24
2008-06-24
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.