Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Compiling Programs contains Xutility calls
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);
}


Report this thread to moderator Post Follow-up to this message
Old Post
ehabaziz2001@gmail.com
07-15-06 11:59 PM


Re: Compiling Programs contains Xutility calls
ehabaziz2001@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.

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Collins
07-16-06 03:00 AM


Re: Compiling Programs contains Xutility calls
Ian 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)

Report this thread to moderator Post Follow-up to this message
Old Post
Richard Heathfield
07-16-06 08:59 AM


Re: Compiling Programs contains Xutility calls
Where can I download the header file xutility.h for compiling  a C
program ?


Report this thread to moderator Post Follow-up to this message
Old Post
ehabaziz2001@gmail.com
07-16-06 08:59 AM


Re: Compiling Programs contains Xutility calls
ehabaziz2001@gmail.com wrote:
> Where can I download the header file xutility.h for compiling  a C
> program ?
>
Have you searched for it?

--
Ian Collins.

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Collins
07-16-06 08:59 AM


Re: Compiling Programs contains Xutility calls
ehabaziz2001@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.

Report this thread to moderator Post Follow-up to this message
Old Post
Keith Thompson
07-16-06 08:59 AM


Re: Compiling Programs contains Xutility calls
I need the header file xutility.h for unix compilation using gcc.


Report this thread to moderator Post Follow-up to this message
Old Post
ehabaziz2001@gmail.com
07-17-06 12:00 AM


Re: Compiling Programs contains Xutility calls
Any way I can find xutility.h for Visual C .


Report this thread to moderator Post Follow-up to this message
Old Post
ehabaziz2001@gmail.com
07-17-06 12:00 AM


Re: Compiling Programs contains Xutility calls
ehabaziz2001@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."

Report this thread to moderator Post Follow-up to this message
Old Post
Ben Pfaff
07-17-06 12:00 AM


Re: Compiling Programs contains Xutility calls
ehabaziz2001@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.

Report this thread to moderator Post Follow-up to this message
Old Post
Keith Thompson
07-17-06 12:00 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:20 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.