Skip to content
Advertisement

Symbols not found during linking

I have a problem with a shared library (Linux) and a program that links against this library but does not find the symbols – although they are there. That’s what I have:

A shared library “libetest.so” that is located in /usr/lib. When I do an

JavaScript

it gives (beside some others) this output:

JavaScript

Now I have an application that makes use of ETEST_open_connection(). When I build it with

JavaScript

it fails with a linker error

JavaScript

As shown before the symbol is there! Any idea why this fails?

Advertisement

Answer

Please try:

JavaScript

This should be the correct argument order.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement