/root/charan/OpenAMQ-1.3c5/base2/smt/libsmt.a(smt_method_queue.o): In function ‘smt_method_queue_sync_new_’:
smt_method_queue.c:(.text+0x5d4): undefined reference to ‘icl_cond_new_’
/root/charan/OpenAMQ-1.3c5/base2/smt/libsmt.a(smt_method_queue.o): In function ‘smt_method_queue_free_’:
smt_method_queue.c:(.text+0x1bb7): undefined reference to ‘icl_cond_destroy_’
/root/charan/OpenAMQ-1.3c5/base2/smt/libsmt.a(smt_os_thread.o): In function ‘smt_os_thread_annihilate_’:
smt_os_thread.c:(.text+0x48c): undefined reference to ‘icl_cond_destroy_’
/root/charan/OpenAMQ-1.3c5/base2/smt/libsmt.a(smt_os_thread.o): In function ‘smt_terminate’:
smt_os_thread.c:(.text+0x2830): undefined reference to ‘icl_cond_destroy_’
/root/charan/OpenAMQ-1.3c5/base2/smt/libsmt.a(smt_os_thread.o): In function ‘smt_initialise’:
smt_os_thread.c:(.text+0x2ce4): undefined reference to ‘icl_cond_new_’
smt_os_thread.c:(.text+0x308d): undefined reference to ‘icl_cond_new_’
I am getting these errors when i built the application. I am not understanding why it is not able to find, i included both smt and icl with their respective paths
linking errors in libsmt.a when my app is built linking libsmt.a
Forum
» Ongoing Development / Help wanted
» linking errors in libsmt.a when my app is built linking libsmt.a
Summary:
When I built the smt, icl individually, the build succeeded without errors,
Eventhough the functions are defined in the respective folders, i got the undefined reference errors.
linking errors in libsmt.a when my app is built linking libsmt.a
Unfold
linking errors in libsmt.a when my app is built linking libsmt.a by
charan_posa, 26 May 2009 10:45
For some reason, it's not searching libicl.a. You should link using the 'c' script:
c -l myapp
after ensuring that IBASE is correctly set to the ibase directory. You can use 'c -v -l myapp' to see exactly what link command the script is issuing.
Unfold
Re: linking errors in libsmt.a when my app is built linking libsmt.a by
pieterh, 26 May 2009 13:23
Re: linking errors in libsmt.a when my app is built linking libsmt.a
Hi,
Thanks for the reply,
I am not understanding exactly what you are saying, I am using red hat enterprise linux 4.6
myapp is c++ application in which i require OpenAMQ so linked the libraries using -lsmt, in similar way in the makefile giving the respective paths.
Now i am getting problem with the libsmt.a not able to find few functions in the libicl.a
regards,
Charan
Unfold
Re: linking errors in libsmt.a when my app is built linking libsmt.a by
charan_posa, 26 May 2009 14:05
Linking is a little complex since there are a lot of library dependencies. This is what the 'c' script does to link a program (e.g. amq_server)
c -L amq_server
Linking amq_server (gcc -g -DDEBUG -O2 -D_REENTRANT -D_GNU_SOURCE -Wall -Wno-unused -fno-strict-aliasing -DBASE_THREADSAFE amq_server.o -o amq_server -Wl,--start-group -lamq_server -lamq_server -lamq_common -lamq_server -lamq_shell -lamq_wireapi -lamq_zyre -lapr -laprutil -lasl -lgsl -lgsl3 -lhttp -licl -lipr -lopf -lpcre -lsfl -lsmt -lsmt3 -lxump -lzip -lrt -lcrypt -lpthread -lm -Wl,--end-group -L. -L. -L/home/ph/ibase/lib -lrt -lcrypt -lpthread -lm)...
Unfold
Re: linking errors in libsmt.a when my app is built linking libsmt.a by
pieterh, 26 May 2009 15:59
/forum/t-158414/linking-errors-in-libsmt-a-when-my-app-is-built-linking-libs#post-






