acfr / snark

generic c++ libraries and utilities for robotics
Other
69 stars 41 forks source link

audio-sample: windows build fail #96

Closed junderwood closed 9 years ago

junderwood commented 9 years ago

ClCompile: audio-sample.cpp C:\Users\j.underwood\Code\cpp\libraries\boost\boost_1_55_0\boost/thread/pthread/mutex.hpp(10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Isn't there a cross platform mutex from boost?

vlaskine commented 9 years ago

it was a stray include, probably from some unfortunate autocompletion in the editor

junderwood commented 9 years ago

It explicitly only includes select on non-windows, for known reasons... so now the build fails on calls to select, which is undefined on win. Is it meant to compile on win or should it be removed from cmake if win32?

..........\source\snark\audio\applications\audio-sample.cpp(182): error C2228: left of '.wait' must have class/struct/union ..........\source\snark\audio\applications\audio-sample.cpp(183): error C2228: left of '.read' must have class/struct/union ..........\source\snark\audio\applications\audio-sample.cpp(183): error C2228: left of '.ready' must have class/struct/union

vlaskine commented 9 years ago

fixed