linux下的一个C程序,为什末有错误????
有一个程序是这样tt.c
#include <newt.h>
int main(int argc,char *argv[])
{
newtComponent form,button;
newtInit();
newtCls();
//在窗口底部写帮助信息
newtPushHelpLine("Press button to exit....");
//建立窗口
newtOpenWindow(10,5,40,6,"ButtonSample");
//建立按钮
button =newtButton(10,1,"HelloWorld");
//建立Form
form=newtForm(NULL,NULL,0);
//把按钮加入form
newtFormAddComponents(form,button,NULL);
//进入Form循环
newtRunForm(form);
//关闭form
newtFromDestroy(form);
//复原
newtFinished();
}
gcc -o prog tt.c
有错误