Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Libpthread.so,.a when using icpc v10.0 (segmentation fault on pthread_mutex_trylock call)

diegert
Beginner
451 Views

The few Redhat boxes around here allhave different collections of libpthread.a (with links to various version-numbered file names), and have them in places like /lib, /lib64, /usr/lib, /usr/lib64, /usr/lib/, and more. Thereis also a file libpthread_nonshared.a (and a libpthread_real.so, maybe to go with it). There are, in fact, many more variations on names and locations for variations on libpthread.so.

Can someone offer guidance on what is known to work (or known not to work) using the Intel C++ compiler to generate 64-bit code? Just using -lpthread on the couple of boxes that I tried makes code that sort of works, but thatdoes a segmentation faultwhen I call pthread_mutex_trylock().

0 Kudos
0 Replies
Reply