Date: Mon, 12 Jan 2015 15:57:08 -0800 From: Rich Wilson <richaw@gmail.com> To: freebsd-questions@freebsd.org Subject: Using pthread: compile error Message-ID: <CAPTvksDQVkfhxbx2Knefe=e=XEKCP-%2BKDvKLN-555H2w7ZkbUA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I have an application I'm moving from Linux to FreeBSD, and I've run into a perplexing situation. I get the following error: In file included from noteData.cc:5: ./notePlay.h:58:5: error: unknown type name 'pthread_mutex_t'; did you mean 'pthread_mutex'? pthread_mutex_t mutex_np; ^~~~~~~~~~~~~~~ pthread_mutex /usr/include/stdio.h:142:9: note: 'pthread_mutex' declared here struct pthread_mutex *_fl_mutex; /* used for MT-safety */ ^ As far as I can tell, 'man pthread' tells me this should be defined, and pthread.h (or its includes) doesn't. What's wrong? The system I am using is the file FreeBSD-11.0-CURRENT-arm-armv6-ZEDBOARD-20150111-r276981.img found at ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/ -- Rich Wilson
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPTvksDQVkfhxbx2Knefe=e=XEKCP-%2BKDvKLN-555H2w7ZkbUA>