在debug下都是正常的,edit scheme改为release之后,就会出现链接出错的的问题:
###############################
Undefined symbols for architecture i386:
“Login::onRequestLogin(char const*, unsigned int, int, int)”, referenced from:
Main::onRequestLogin(char const*, unsigned int, int, int) in Main.o
###############################
Main和Login都是在我工程的代码,不明白为什么会链接出错呢?各位有没有遇到过这种问题?
////////////////////////////////////
找到问题了,是代码中有个#ifdef,在xcode的release下会生效导致出现问题
,老子搞了几个小时啊,我草草草!!