#include <libyahoo2/yahoo2.h>
#include <libyahoo2/yahoo2_callbacks.h>
#include <yahoo2.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int main() {
int id ;
char username[255] = "slam";
char password[255] = "ss" ;
id = yahoo_init(username, password);
enum yahoo_status mYahoo ;
mYahoo = YAHOO_STATUS_AVAILABLE ;
yahoo_login(id , mYahoo);
return 0;
}
大家好,当我编译这段代码的出放为分段故障 任何机构可以帮我解决这个问题PLZ分段错误
分段错误在哪里?它应该告诉你问题出现在哪里... –
我不知道。错误是这个Segmentation fault(核心转储) –
[libyahoo Segmentation fault]的可能重复(http://stackoverflow.com/questions/9203461/libyahoo-segmentation-fault) –