On 03-03-2010 19:17:43 +0100, Alexander Koglin wrote:
Hi everybody,
I tried to setup an Eclipse project by linking the libMapi against it and adding some entities to MonetDB SQL and always get the following error:
.../Project/Debug/Project: error while loading shared libraries: libMapi.so.1: cannot open shared object file: No such file or directory
[snip]
When invoking the GCC C++ Linker I call the following directive:
g++ -L/usr/local/Tarari/lib -L/root/MonetDB/lib -L/root/xerces-2.8/lib `monetdb-clients-config --cflags --libs` -o"NodeFetcherCPP" ./src/ IndexHandler.o ./src/MonetMapiUpdater.o ./src/NodeFetcher.o -lMapi -ltararixpath -lxerces-c
What can be the reason for the error during execution?
Your libMapi is in a non-standard location. You need to tell your system where it is at runtime also, preferably using runpath entries (--rpath) or ldconfig. Consult your favourite search engine to learn more about ELF dynamic linking and runtime resolution used by the loader.