Struggling with "Undefined symbols for architecture armv7"

150 views
Skip to first unread message

Gal Cohen

unread,
Nov 20, 2012, 3:13:08 AM11/20/12
to up...@googlegroups.com
Hey guys, 

Seems like I got the library to build just fine, and as far as i could tell, my build settings are correct. However, I get these errors 


Undefined symbols for architecture armv7:

"std::string::assign(char const*, unsigned long)", referenced from:

SSDPDB::InsertDevice(unsigned char*, unsigned int) in libPods.a(ssdpdb.o)

SSDPNotifyAlive::Process(sockaddr*, std::vector<SSDP_HTTP_HEADER*, std::allocator<SSDP_HTTP_HEADER*> >) in libPods.a(ssdpnotifyalive.o)

SSDPSearchResp::Process(sockaddr*, std::vector<SSDP_HTTP_HEADER*, std::allocator<SSDP_HTTP_HEADER*> >) in libPods.a(ssdpsearchresp.o)
...
...

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)


etc. etc.etc..  theres about 21 of em.

I've tried playing around with the build settings and linker flags, and following several stackoverflow threads for similar errors... no luck. I figured if i use http://cocoapods.org/ I can bypass all these errors... but I ended up in the same exact place.

I'm at a loss. Am I missing some crucial piece of common knowledge here? :(

Any ideas? a list of settings I should double check? maybe suggestions for more information I should provide? 

Thanks in advance!





Bodo Tasche

unread,
Dec 10, 2012, 10:49:47 AM12/10/12
to up...@googlegroups.com
I have the same problem right now. Has anyone a solution to this?

Thanks!
Bodo

Bodo Tasche

unread,
Jan 24, 2013, 5:38:02 AM1/24/13
to up...@googlegroups.com
Found the solution:

Add -lstdc++ to Other Linker Flags in your Build Target

Gal Cohen

unread,
Jan 24, 2013, 11:09:17 AM1/24/13
to up...@googlegroups.com
Tried that already, still no luck :(
thanks for the suggestion though

Adam Mendes da Silva

unread,
Nov 6, 2013, 1:01:32 PM11/6/13
to up...@googlegroups.com
Please, anyone found something about this?

Already tried the -lstdc++, no win...

Adam Mendes da Silva

unread,
Nov 13, 2013, 1:50:02 PM11/13/13
to up...@googlegroups.com
Well, after a lot of modifications in the Build Info, and i started from a clean project at least three times, for me, what resolve is:

- Architectures: Standard Including 64 bits
- Other Linker Flags: -all_load -lstdc++ -ObjC
- C Language Dialect: GNU99
- C++ Language Dialect: Compiler Default
- User Header Search Paths:
  - recursive for api folder
  - recursive for port ios

Hope it helps.

Thanks,
Adam
Reply all
Reply to author
Forward
0 new messages