[PROBLEM SOLVED]
How I solved the problem:
-
Setting the search paths to the directory of the INSTALLED ROOT, not simply the downloaded and unpacked one.
-
Anyway the program crash when using the “Write()” function anywhere in the code, solved not including the “libNew.so” library, which evidently generates the issue.