2014-12-19 3 views
2

iOS 프로젝트에서 VLCKit (MobileVLCKit.framework)를 사용하고 있습니다. 처음에는 모든 것이 잘 작동합니다. 그런 다음 C++ 코드를 추가하므로 일부 파일은 .mm 파일입니다. 컴파일 할 때 실패했습니다. Xcode 로그iLC 프로젝트의 .mm 파일과 VLCKit 충돌

Undefined symbols for architecture armv7: 
    "std::runtime_error::runtime_error(std::string const&)", referenced from: 
     libebml::CRTError::CRTError(std::string const&, int) in MobileVLCKit(StdIOCallback.o) 
    "std::ostream& std::ostream::_M_insert<void const*>(void const*)", referenced from: 
     libebml::IOCallback::writeFully(void const*, unsigned long) in MobileVLCKit(IOCallback.o) 
     libebml::IOCallback::readFully(void*, unsigned long) in MobileVLCKit(IOCallback.o) 
    "std::runtime_error::runtime_error(std::string const&)", referenced from: 
     libebml::IOCallback::writeFully(void const*, unsigned long) in MobileVLCKit(IOCallback.o) 
     libebml::IOCallback::readFully(void*, unsigned long) in MobileVLCKit(IOCallback.o) 
     "VTT for std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >", referenced from: 
... 

이 문제를 해결하는 이유와 방법을 알지 못합니다.

답변

5

해결책을 찾았습니다 : C++ 표준 라이브러리를 빌드 설정의 libstdC++ (GNU C++ 표준 라이브러리)로 변경하십시오.