Code Comments
Programming Forum and web based access to our favorite programming groups.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);
}
Post Follow-up to this messageehabaziz2001@gmail.com wrote: > How can I compile that program under Solaris 8 using gcc and what > header files will be used ? > I suggest you read the manual or documentation for Xutility. > > main() That's not the correct form of main, it returns int. -- Ian Collins.
Post Follow-up to this messageIan Collins said: > ehabaziz2001@gmail.com wrote: > I suggest you read the manual or documentation for Xutility. > > That's not the correct form of main, it returns int. 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)
Post Follow-up to this messageWhere can I download the header file xutility.h for compiling a C program ?
Post Follow-up to this messageehabaziz2001@gmail.com wrote: > Where can I download the header file xutility.h for compiling a C > program ? > Have you searched for it? -- Ian Collins.
Post Follow-up to this messageehabaziz2001@gmail.com writes: > Where can I download the header file xutility.h for compiling a C > program ? Downloading just a header file is seldom useful. You need the version of the header that's appropriate for your system, and you need the code that implements whatever the header declares. The header file is likely to be part of some software package, and you need the whole thing. A Google search shows several different things called "xutility"; I don't know which one you're looking for. -- Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst> We must do something. This is something. Therefore, we must do this.
Post Follow-up to this messageI need the header file xutility.h for unix compilation using gcc.
Post Follow-up to this messageAny way I can find xutility.h for Visual C .
Post Follow-up to this messageehabaziz2001@gmail.com writes: > I need the header file xutility.h for unix compilation using gcc. This is in the FAQ. 10.11: I seem to be missing the system header file <sgtty.h>. Can someone send me a copy? A: Standard headers exist in part so that definitions appropriate to your compiler, operating system, and processor can be supplied. You cannot just pick up a copy of someone else's header file and expect it to work, unless that person is using exactly the same environment. Ask your compiler vendor why the file was not provided (or to send a replacement copy). -- Peter Seebach on C99: "[F]or the most part, features were added, not removed. This sounds great until you try to carry a full-sized printout of the standard around for a day."
Post Follow-up to this messageehabaziz2001@gmail.com writes: > I need the header file xutility.h for unix compilation using gcc. In my previous respone, which you didn't quote, I wrote: | Downloading just a header file is seldom useful. You need the version | of the header that's appropriate for your system, and you need the | code that implements whatever the header declares. | | The header file is likely to be part of some software package, and you | need the whole thing. | | A Google search shows several different things called "xutility"; I | don't know which one you're looking for. I still don't know what you're looking for. If you told us exactly what version of gcc, what variant of Unix, and what hardware you're using, I *still* wouldn't know what you're looking for. xutility.h must be part of some software package. You need to find and install that package; even if you could find the single file "xutility.h", it almost certainly wouldn't do you any good. As Ben Pfaff pointed out (and I should have thought to mention myself), this is also question 10.11 in the comp.lang.c FAQ, <http://www.c-faq.com>. -- Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst> We must do something. This is something. Therefore, we must do this.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.