error while compiling using mex in matalb

I am using some instruction provided by code developer to compile the library. However, I am getting the error as shown in the figure. Does anybody has any idea about this? It is my first time to use mex.
mex LDFLAGS="\$LDFLAGS -Wl,-rpath,\." nativeborg.cpp libborg.so

Antworten (1)

Walter Roberson
Walter Roberson am 23 Mär. 2017

0 Stimmen

The comma is treated as end of command. Try
mex('LDDFLAGS="$LDFLAGS -Wl,-rpath,."', 'nativeborg.cpp', 'libborg.so')

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 23 Mär. 2017

Beantwortet:

am 23 Mär. 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by