编译程序包含Xutility调用 [英] Compiling Programs contains Xutility calls
问题描述
如何使用gcc在Solaris 8下编译该程序以及将使用什么
头文件?
main()
{
/ *定义默认值:* /
int n = 0;
float x = 0.0;
/ *定义对话窗口的内容* /
create_int_dialog_entry(" n",& n);
create_float_dialog_entry (x,& x);
/ *创建名称为设置的窗口和左上角(0,0)* /
set_up_dialog(" Setup",0,0);
/ *显示窗口并阅读结果* /
read_dialog_window();
/ *打印出新值* /
printf(&n;%d,x =%f \ n",n,x);
}
How can I compile that program under Solaris 8 using gcc and what
header files will be used ?
main()
{
/* Define default values: */
int n = 0;
float x = 0.0;
/* Define contents of dialog window */
create_int_dialog_entry("n", &n);
create_float_dialog_entry("x", &x);
/* Create window with name "Setup" and top-left corner at (0,0) */
set_up_dialog("Setup", 0, 0);
/* Display the window and read the results */
read_dialog_window();
/* Print out the new values */
printf("n = %d, x = %f\n", n, x);
}
推荐答案
eh ********* *@gmail.com 写道:
如何在Solaris 8下使用gcc编译该程序以及
头文件将被使用?
How can I compile that program under Solaris 8 using gcc and what
header files will be used ?
我建议您阅读有关Xutility的手册或文档。
I suggest you read the manual or documentation for Xutility.
>
main()
>
main()
那不是正确的主要形式,它返回int。
-
Ian Collins。
That''s not the correct form of main, it returns int.
--
Ian Collins.
Ian Collins说:
Ian Collins said:
eh ********* *@gmail.com 写道:
>我如何使用gcc在Solaris 8下编译该程序,以及
头文件将是什么?使用?
>How can I compile that program under Solaris 8 using gcc and what
header files will be used ?
我建议您阅读Xutility的手册或文档。
I suggest you read the manual or documentation for Xutility.
>>
main()
>>
main()
这不正确main的形式,它返回int。
That''s not the correct form of main, it returns int.
更准确地说,它在K& R C和C90中是正确的(其中int返回类型
是隐含的)。在C99确实不正确。
-
Richard Heathfield
Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk
电子邮件:rjh在上面的域名(但显然放弃了www)
To be more precise, it''s correct in K&R C and C90 (where the int return type
is implicit). It is indeed incorrect in C99.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
我在哪里可以下载头文件xutility。 h编译C $ / $
计划?
Where can I download the header file xutility.h for compiling a C
program ?
这篇关于编译程序包含Xutility调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!