#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) –