timesys arm-gcc toolchain에서 1.35.0과 1.36.0을 빌드하는 데 아무런 문제가 없습니다. 정적 (link-static)과 동적 (.so, default 선택권). 그러나gcc-arm toolchain 용 Boost C++ 라이브러리
, 나는 간단한 샘플 파일 시스템 응용 프로그램 연결하려고 :
#include <boost/filesystem.hpp>
#include <iostream>
namespace fs = boost::filesystem;
int main(int argc, char *argv[]) {
const char* fileName = argv[1];
std::cout << "file: " << fileName << " => " << fs::exists(fileName) << std::endl;
return 0;
}
을 나는 다음과 같은 링커 오류 얻을 :
이
[email protected]:~/boost/test$ /opt/timesys/at91sam9263_ek/toolchain/bin/armv5l-timesys-linux-gnueabi-gcc
exists.cpp -o exists.exe -I ../boost_1_35_0/ -lboost_filesystem -lboost_system -lstdc++ -L .
/tmp/ccex3NGb.o: In function `boost::detail::atomic_decrement(int*)':
exists.cpp:(.text._ZN5boost6detail16atomic_decrementEPi[boost::detail::atomic_decrement(int*)]+0x1c):
undefined reference to `__sync_fetch_and_add_4'
/tmp/ccex3NGb.o: In function `boost::detail::atomic_increment(int*)':
exists.cpp:(.text._ZN5boost6detail16atomic_incrementEPi[boost::detail::atomic_increment(int*)]+0x1c):
undefined reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status
사람 내가 위해 구축 부스트를 얻을 수있는 방법을 알고 있나요을 gcc-arm toolchain?