我真的很喜欢玩 Alchemy API REST api 并尝试过 php sdk 但我试图编译 API 并在尝试制作时不断遇到一个非常奇怪的问题。
这是在尝试使用 Bitnami AMI 在 AWS EC2 上的 Ubuntu 实例上进行编译时。
这是输出:
libtool: link: g++ -g -O2 -o .libs/keywordspp keywordspp.o ../src/.libs/libalchemyapi.so -L/opt/bitnami/common/lib /opt/bitnami/common/lib/libxml2.so -lz /opt/bitnami/common/lib/libiconv.so -lm /opt/bitnami/common/lib/libcurl.so -Wl,-rpath -Wl,/opt/bitnami/common/lib
keywordspp.o: In function `operator<< <char, std::char_traits<char>, std::allocator<char> >':
/usr/include/c++/4.4/bits/basic_string.h:2506: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
keywordspp.o: In function `operator<< <std::char_traits<char> >':
/usr/include/c++/4.4/ostream:510: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
keywordspp.o: In function `operator<< <char, std::char_traits<char>, std::allocator<char> >':
/usr/include/c++/4.4/bits/basic_string.h:2506: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
collect2: ld returned 1 exit status
make[1]: *** [keywordspp] Error 1