Skip to content

Commit 43c0203

Browse files
committed
fixed build_mex
1 parent d346e48 commit 43c0203

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

build_mex.m

+3-8
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,13 @@
44
% C compiler (mex -setup)
55

66
libs = {'-llsl64'};
7-
if ispc
8-
dllext = 'dll';
9-
elseif ismac
10-
dllext = 'dylib';
11-
elseif isunix
12-
dllext = 'so';
7+
if isunix
138
libs = {'-llsl64','-ldl'};
149
end
1510

1611

17-
if isempty(dir(['bin/liblsl64.', dllext]))
18-
%error(['liblsl64.' dllext ' not found in bin/']);
12+
if ispc && isempty(dir('bin/liblsl64.lib'))
13+
error('liblsl64.lib not found in bin/');
1914
end
2015

2116
ext = ['.' mexext];

0 commit comments

Comments
 (0)