cancel
Showing results for 
Search instead for 
Did you mean: 

iOS tutorial build error with SUP2.1

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Can you check by adding 'libstdc++.6.a' library in the build settings of the project ?

Former Member
0 Kudos

This last bit of adding 'libstdc++.6.dylib' and also we removed the libstdc++.dylib, did the job for us and our Build succeeded. Thanks Manik.

Thanks

Bhavna Bharti.

johna69
Product and Topic Expert
Product and Topic Expert
0 Kudos

This answer is a bit late for you but might help others.

It looks like your linker flags are missing -lstdc++

Cheers

JohnA

Former Member
0 Kudos

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.