Originally posted by: Ramesh_1409
I have compiled my application "mglagent" using g++ compiler. I have linked with C run time libraries using "lzlib -lSockets -lssl -lcrypto -Bstatic -lCLB -lboost_thread-gcc-mt-sd -lpthreads -lc_r -lodm -llvm -lcfg -lperfstat -Wl,-bbigtoc,-brtl" linking options. The application "mglagent" uses dynamic libraries (-lsymapimt -lstorcoremt -lstorpdsmt) built using xlc compiler. When ever I run my application "mglagent" I get below error. I have already linked the c libarary which has reference to the below mentioned function. Is there any compatiblity issue between these comipler. Let me know if I need to add any other g++ linking option to resolve this issue.
Could not load program ./mglagent:
Symbol resolution failed for mglagent because:
Symbol strcpy (number 540) is not exported from dependent
module /usr/lib/libstorcoremt.a(libstorcoremt.o).
Symbol strncat (number 541) is not exported from dependent
module /usr/lib/libstorcoremt.a(libstorcoremt.o).
Symbol bcopy (number 542) is not exported from dependent
module /usr/lib/libstorcoremt.a(libstorcoremt.o).
Symbol strcat (number 543) is not exported from dependent
module /usr/lib/libsymapimt.a(libsymapimt.o).
Symbol strcmp (number 544) is not exported from dependent
module /usr/lib/libsymapimt.a(libsymapimt.o).
Symbol strncpy (number 545) is not exported from dependent
module /usr/lib/libsymapimt.a(libsymapimt.o).
Symbol memmove (number 606) is not exported from dependent
module /usr/lib/libstorpdsmt.a(libstorpdsmt.o).
Examine .loader section symbols with the 'dump -Tv' command.
#AIX-Forum