2014-01-28 3 views
0

간단한 "Hello World!"를 크로스 컴파일하려고합니다. 프로그램, 아치 리눅스에서 윈도우아치 리눅스에서 창문으로 크로스 컴파일 pdcurses

에 여기에 코드입니다 :

#include <stdio.h> 
#include <curses.h> 

int main() { 
    initscr(); 

    printw("Hello World!"); 
    refresh(); 
    getch(); 

    endwin(); 
    return 0; 
} 

그리고 그때와 Mingw를 사용하여 컴파일 :

x86_64-w64-mingw32-gcc hello.c -o hello-x64.exe -lpdcurses.dll

을 내가 프로그램을 실행하면 충돌이 발생합니다. 여기에 그것이야 trace

답변

0

curses.h가 PDCurses 패키지에 포함되어 있고 curses.h (ncurses) 시스템이 아닌지 확인하십시오.

또한 문제는 아니지만 stdio.h는 필요하지 않습니다.