Ok, it all works

I had to add the PATH in Eclipse.

Project > Properties > C/C++ Build > Environment

Not sure why I had to do that, since the application is accessible in a terminal window