Could not resolve all symbols ..

Hi,

I have no idea why the linker/loader isn’t able to find symbols in the
shared
lib libqtai.so … the application compiles flawless.

->Compilation:

make

QCC -c -pipe -fno-inline -fno-pack-struct -shared -fPIC -DNO_DEBUG
-Iinclude -I/openqnx/qt-2.3.1/include -I.
…/qwt/include aidemo1.cpp
QCC -Wl,-E -o aidemo1 -Iinclude -I/openqnx/qt-2.3.1/include
-I…/qwt/include aidemo1.cpp moc_aidemo1.o -L/o
penqnx/qt-2.3.1/lib -L/opt/X11R6/lib -lXext -lX11 -lm -lsocket -lICE
-lSM -lqt -Llib -lqtai

->Start of the application:

aidemo1

unknown symbol: setPlotColor__6AIPlotiiii
unknown symbol: setPlotType__6AIPloti
[ clip …]
unknown symbol: setData__5AIBarid
Could not resolve all symbols

->The lib contains the symbol:

objdump -T libqtai.so | grep setPlotColor__6AIPlotiiii

000119fc g DF .text 0000004f setPlotColor__6AIPlotiiii

->The app has it as undef symbol:

objdump -x aidemo1 | grep setPlotColor__6AIPlotiiii

0804c210 F UND 0000004f setPlotColor__6AIPlotiiii

Regards

Armin

Problem solved :slight_smile: Didn’t install a lib in LD_PATH …

Armin

Armin Steinhoff wrote:

Hi,

I have no idea why the linker/loader isn’t able to find symbols in the
shared
lib libqtai.so … the application compiles flawless.

->Compilation:

make

QCC -c -pipe -fno-inline -fno-pack-struct -shared -fPIC -DNO_DEBUG
-Iinclude -I/openqnx/qt-2.3.1/include -I.
./qwt/include aidemo1.cpp
QCC -Wl,-E -o aidemo1 -Iinclude -I/openqnx/qt-2.3.1/include
-I…/qwt/include aidemo1.cpp moc_aidemo1.o -L/o
penqnx/qt-2.3.1/lib -L/opt/X11R6/lib -lXext -lX11 -lm -lsocket -lICE
-lSM -lqt -Llib -lqtai

->Start of the application:

aidemo1

unknown symbol: setPlotColor__6AIPlotiiii
unknown symbol: setPlotType__6AIPloti
[ clip …]
unknown symbol: setData__5AIBarid
Could not resolve all symbols

->The lib contains the symbol:

objdump -T libqtai.so | grep setPlotColor__6AIPlotiiii

000119fc g DF .text 0000004f setPlotColor__6AIPlotiiii

->The app has it as undef symbol:

objdump -x aidemo1 | grep setPlotColor__6AIPlotiiii

0804c210 F UND 0000004f setPlotColor__6AIPlotiiii

Regards

Armin