I'm writting a c++ program that includes two C libs (mysql and ta-lib). When I compile the app, I run into an error that both of the libraries define the function list_delete. In C++ this sounds like something that could be solved with namespaces, but I can't figure out what to do to solve this conflict. From my search I've only found similar issues where the conflict was within user created functions. What am I missing?
g++ -Wall -g -g -O2 -o saeg_cpp main.o quote.o stockQuote.o quoteDBConnection.o -L/usr/lib/mysql -L/home/chris/Downloads/ta-lib/c/lib /home/chris/Downloads/ta-lib/c/lib/libta_common_csr.a /usr/lib/mysql/libmysqlclient.a -lcrypt -lnsl -lm -lz /usr/lib/mysql/libmysqlclient.a(list.o)(.text+0x30): In function `list_delete': : multiple definition of `list_delete' /home/chris/Downloads/ta-lib/c/lib/libta_common_csr.a(list.o)(.text+0x744): first defined here /usr/bin/ld: Warning: size of symbol `list_delete' changed from 218 in /home/chris/Downloads/ta-lib/c/lib/libta_common_csr.a(list.o) to 43 in /usr/lib/mysql/libmysqlclient.a(list.o) collect2: ld returned 1 exit status Thank you, chris _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
