I get an strange error on my Linux machine (Ubuntu 16.04) when trying to compile the example file arrayProduct.cpp:
>> mex arrayProduct.cpp
Building with 'g++'.
Error using mex
collect2: fatal error: cannot find 'ld'
however, the linker ld is visible from matlab... what can be going wrong?
>> !which ld
Any help welcome,