on 05-23-2012 6:47 AM
Hi,
I have downloaded the SUP101 mobile application project & trying to deploying it on the Xcode.
I am connecting with SUP2.1 with my iOS 5.0 & Xcode is 4.2.1.
I have followed all the steps mentioned in the tutorial document, but still when i am trying to build the project, i am getting the following error.
This is the few of the errors i am getting while building the project.
Undefined symbols for architecture i386:
"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()", referenced from:
GetExecutionDir(ECTemplateString<char>&, char*, bool) in libMO.a(moPlatForm.o)
CMocaFileTransfer::CreateParamsForSendTraceFiles(mo::CmoObject&) in libMO.a(RobieFileTransfer.o)
CMocaFileTransferFileName::CMocaFileTransferFileName() in libMO.a(RobieFileTransfer.o)
ParseLog(std::string const&, unsigned int&, CmoDateTime&, int&, std::string&) in libMO.a(AppLog.o)
FormatLog(unsigned int, int, char const*, std::string&) in libMO.a(AppLog.o)
CAppLog::LogExists(unsigned int) in libMO.a(AppLog.o)
CAppLog::Get(unsigned int, unsigned int&, CmoDateTime&, int&, char*, unsigned int) in libMO.a(AppLog.o)
...
"std::string::operator=(char const*)", referenced from:
GetExecutionDir(ECTemplateString<char>&, char*, bool) in libMO.a(moPlatForm.o)
ConvertSysTimeToString(CmoDateTime&, std::string&) in libMO.a(AppLog.o)
FormatLog(unsigned int, int, char const*, std::string&) in libMO.a(AppLog.o)
AppLogPersist_GetString(char const*, std::string&) in libMO.a(AppLogPersist_C.o)
"std::string::find_last_of(char const*, unsigned long) const", referenced from:
GetExecutionDir(ECTemplateString<char>&, char*, bool) in libMO.a(moPlatForm.o)
"std::string::substr(unsigned long, unsigned long) const", referenced from:
GetExecutionDir(ECTemplateString<char>&, char*, bool) in libMO.a(moPlatForm.o)
ParseLog(std::string const&, unsigned int&, CmoDateTime&, int&, std::string&) in libMO.a(AppLog.o)
"std::string::c_str() const", referenced from:
GetExecutionDir(ECTemplateString<char>&, char*, bool) in libMO.a(moPlatForm.o)
CMocaFileTransfer::UpdateParamsForGetTraceFiles(mo::CmoParamList&, long) in libMO.a(RobieFileTransfer.o)
CMocaFileTransfer::AddTraceFileForUpload(std::string const&, std::string const&) in libMO.a(RobieFileTransfer.o)
CMocaFileTransfer::CreateParamsForSendTraceFiles(mo::CmoObject&) in libMO.a(RobieFileTransfer.o)
mo::CmoParam::WriteToStream(void*, mo::STREAM_STATE*) in libMO.a(moParams.o)
ParseLog(std::string const&, unsigned int&, CmoDateTime&, int&, std::string&) in libMO.a(AppLog.o)
CAppLog::LogExists(unsigned int) in libMO.a(AppLog.o)
...
"std::string::operator+=(char)", referenced from:
mo::CmoParam::WriteToStream(void*, mo::STREAM_STATE*) in libMO.a(moParams.o)
"std::string::size() const", referenced from:
mo::CmoParam::WriteToStream(void*, mo::STREAM_STATE*) in libMO.a(moParams.o)
"typeinfo for std::bad_alloc", referenced from:
GCC_except_table36 in libMO.a(moParams.o)
GCC_except_table38 in libMO.a(moParams.o)
GCC_except_table41 in libMO.a(moParams.o)
GCC_except_table46 in libMO.a(moParams.o)
GCC_except_table63 in libMO.a(moParams.o)
GCC_except_table110 in libMO.a(moParams.o)
GCC_except_table11 in libMO.a(moStreamWrapper.o)
...
GCC_except_table36 in libMO.a(moParams.o)
GCC_except_table38 in libMO.a(moParams.o)
GCC_except_table41 in libMO.a(moParams.o)
GCC_except_table46 in libMO.a(moParams.o)
GCC_except_table63 in libMO.a(moParams.o)
GCC_except_table110 in libMO.a(moParams.o)
GCC_except_table11 in libMO.a(moStreamWrapper.o)
...
Please help me on this.
Regards,
Shrikant.
Can you check by adding 'libstdc++.6.a' library in the build settings of the project ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This answer is a bit late for you but might help others.
It looks like your linker flags are missing -lstdc++
Cheers
JohnA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shri,
please check did you added all the required libraries and header files into your Xcode. You've to add some ios frameworks into your project. Check Header search paths and Library search paths are entered correctly. try clean and build the simulator. Some times this also will help you.
Thanks & regards
Dinesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.