473,378 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Solaris, Xdesigner, C......

Hi,

Ok I tried posting this in the solaris group with no replies. So I
decided I'll
ask the C gurus.

First off, I'm a total beginner using xdesigner and solaris.

I'm using the Sun cc compiler Version 5.7 on Solaris 10.

I created a simple GUI using xdesigner version 7.7. After I generated
the C code, I tried to compile the main. I get many warnings and
errors that are similar to the ones below (I cut and pasted the last 4
errors because most of the compiling issues are similar.):
mach1# cc test_gui.c
mach1# ...
"/usr/include/X11/Xresource.h", line 352: syntax error before or at:
_Xconst
"/usr/include/X11/Xresource.h", line 352: Warning undefined or missing

type for _Xconst
"/usr/include/X11/Xresource.h", line 353: Warning undefined or missing

type for _Xconst
"/usr/include/X11/Xresource.h", line 354: Warning undefined or missing

type for _Xconst
Am I missing something like a library or definition for these header
files? If so, where do I find them?
Thanks,
Jay

Dec 1 '05 #1
14 1726
In article <11**********************@f14g2000cwb.googlegroups .com>,
<ja****@aol.com> wrote:
Hi,

Ok I tried posting this in the solaris group with no replies. So I
decided I'll
ask the C gurus.

First off, I'm a total beginner using xdesigner and solaris.


Allow me to be the first to say this - and I say it from the deepness of my
heart, with all the kindness and love one has come to associate with the
helpful posts you get in this newsgroup:

Not portable. Can't discuss it here. Blah, blah, blah.

Dec 1 '05 #2
ja****@aol.com writes:
Ok I tried posting this in the solaris group with no replies. So I
decided I'll ask the C gurus.


Sorry, your problem has to do with something system-specific, not with
the C language.

If you didn't get any responses in comp.unix.solaris, you might try
one of the comp.windows.x groups.

--
Keith Thompson (The_Other_Keith) ks***@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.
Dec 1 '05 #3
Thanks for the reply,

If I can, ask one follow up question...

Does this mean when I use xdesigner, I need to generate my code in C++?

Thanks again,
-J

Kenny McCormack wrote:
In article <11**********************@f14g2000cwb.googlegroups .com>,
<ja****@aol.com> wrote:
Hi,

Ok I tried posting this in the solaris group with no replies. So I
decided I'll
ask the C gurus.

First off, I'm a total beginner using xdesigner and solaris.


Allow me to be the first to say this - and I say it from the deepness of my
heart, with all the kindness and love one has come to associate with the
helpful posts you get in this newsgroup:

Not portable. Can't discuss it here. Blah, blah, blah.


Dec 1 '05 #4
On Thu, 01 Dec 2005 20:43:51 GMT, in comp.lang.c , Keith Thompson
<ks***@mib.org> wrote:
ja****@aol.com writes:
Ok I tried posting this in the solaris group with no replies. So I
decided I'll ask the C gurus.


Sorry, your problem has to do with something system-specific, not with
the C language.


Not entirely. At a guess, he's is missing a critical header which
defines _Xconst.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Dec 1 '05 #5
Mark McIntyre <ma**********@spamcop.net> writes:
On Thu, 01 Dec 2005 20:43:51 GMT, in comp.lang.c , Keith Thompson
<ks***@mib.org> wrote:
ja****@aol.com writes:
Ok I tried posting this in the solaris group with no replies. So I
decided I'll ask the C gurus.


Sorry, your problem has to do with something system-specific, not with
the C language.


Not entirely. At a guess, he's is missing a critical header which
defines _Xconst.


And the question of which header that might be is entirely
system-specific.

--
Keith Thompson (The_Other_Keith) ks***@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.
Dec 1 '05 #6
ja****@aol.com writes:
Thanks for the reply,

If I can, ask one follow up question...

Does this mean when I use xdesigner, I need to generate my code in C++?


Sorry, we have no idea. That's pretty clearly not a question about C,
which is what we discuss here. It's probably not even a question
about C++; rather, it seems to be about something called "xdesigner",
which I'd guess includes documentation.

--
Keith Thompson (The_Other_Keith) ks***@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.
Dec 1 '05 #7
ja****@aol.com wrote
(in article
<11**********************@f14g2000cwb.googlegroups .com>):
Hi,

Ok I tried posting this in the solaris group with no replies.
I tried asking a question once in a physics newsgroup, and got
no replies. So, I tried the same question in a a networking
protocols group, and they told me to go away, as it was
Off-Topic. Guess what is going to happen here?
So I decided I'll ask the C gurus.
They're all busy working on C.
First off, I'm a total beginner using xdesigner and solaris.
We care not.
I'm using the Sun cc compiler Version 5.7 on Solaris 10.
We care not. Portable, standard C doesn't care about the
compiler at all, unless the compiler is broken. If you think
your compiler is broken, call tech support.
I created a simple GUI using xdesigner version 7.7.
There are no GUIs in standard C. There is no "xdesigner"
either. Is it commercial software? Have you contacted the
vendor?
After I generated the C code, I tried to compile the main.
I usually compile source files. YMMV.
mach1# cc test_gui.c
mach1# ...
"/usr/include/X11/Xresource.h", line 352: syntax error before or at:
_Xconst


Very interesting. That is not a standard header, and my crystal
ball was dropped on the floor last Thursday, at which time it
shattered into a zillion pieces. It was especially annoying, as
I was barefoot at the time.

I can't guess what's inside, and even if I had that header on my
system, I wouldn't discuss it in this newsgroup.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Dec 1 '05 #8
Randy Howard said:
There are no GUIs in standard C.


There might be. Standard C does not forbid an implementation to use GUI
stuff for, say, stdin, stdout, and stderr.

--
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)
Dec 1 '05 #9
Richard Heathfield wrote
(in article
<dm**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com>):
Randy Howard said:
There are no GUIs in standard C.


There might be. Standard C does not forbid an implementation to use GUI
stuff for, say, stdin, stdout, and stderr.


Oh my. You're in one of those moods today.

:-)

--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Dec 1 '05 #10
On 2005-12-01, Richard Heathfield <in*****@invalid.invalid> wrote:
Randy Howard said:
There are no GUIs in standard C.


There might be. Standard C does not forbid an implementation to use GUI
stuff for, say, stdin, stdout, and stderr.


And an implementation that did might be better from some points of view,
as such an implementation could allow \v to work as expected. It's not
clear to me just what is expected, but clearly someone had something in
mind at some point other than doing nothing or printing an unspecified
graphical character.
Dec 1 '05 #11
On Thu, 01 Dec 2005 21:56:27 GMT, in comp.lang.c , Keith Thompson
<ks***@mib.org> wrote:
Mark McIntyre <ma**********@spamcop.net> writes:
On Thu, 01 Dec 2005 20:43:51 GMT, in comp.lang.c , Keith Thompson
<ks***@mib.org> wrote:
ja****@aol.com writes:
Ok I tried posting this in the solaris group with no replies. So I
decided I'll ask the C gurus.

Sorry, your problem has to do with something system-specific, not with
the C language.


Not entirely. At a guess, he's is missing a critical header which
defines _Xconst.


And the question of which header that might be is entirely
system-specific.


Agreed. However I feel the question can be answered in terms of ISO C.
The error means he's missing the definition of the type.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Dec 1 '05 #12
ja****@aol.com writes:
Hi,

Ok I tried posting this in the solaris group with no replies. So I
decided I'll
ask the C gurus.

First off, I'm a total beginner using xdesigner and solaris.

I'm using the Sun cc compiler Version 5.7 on Solaris 10.

I created a simple GUI using xdesigner version 7.7. After I generated
the C code, I tried to compile the main. I get many warnings and
errors that are similar to the ones below (I cut and pasted the last 4
errors because most of the compiling issues are similar.):


[snipped error messages]

Perhaps this is off topic here as other posters suggest, but perhaps not,
I don't know... And we can't tell you what's wrong, because you haven't
supplied us with enough information.

Next time you need help to decipher the output of a C compiler post the
portion of the code that is the cause of the error messages, together
with the error messages. And post the first 4 errors instead of the
last 4.

/Niklas Norrthon

Dec 2 '05 #13

In article <sl********************@random.yi.org>, Jordan Abel <jm****@purdue.edu> writes:
On 2005-12-01, Richard Heathfield <in*****@invalid.invalid> wrote:

Standard C does not forbid an implementation to use GUI
stuff for, say, stdin, stdout, and stderr.


And an implementation that did might be better from some points of view,
as such an implementation could allow \v to work as expected. It's not
clear to me just what is expected, but clearly someone had something in
mind at some point other than doing nothing or printing an unspecified
graphical character.


Vertical tab is sensible for some screen-mode terminals, like IBM
3270s and 5250s. Those typically have a motion key defined for
something like "field down" - move to the next input field on the
screen below the current line.

I note the C99 Rationale says:

The vertical tab sequence ('\v') was added since many existing
implementations support it, and since it is convenient to have a
designation within the language for all the defined white space
characters. (5.2.2 ln 30-32)

In the PDP-10 archives at trailing-edge.com I see that the driver for
Qume, Xerox, Diablo, Gencom, and AJ830 hard-copy terminals has a "set
vertical tab" settting. I think that was used mostly with preprinted
forms - you could set vertical tabs corresponding to areas of the
form.

(According to the xterm docs, xterm treats VT as identical to LF,
which at least isn't "doing nothing or printing an unspecified
graphical character", though whether it's significantly more useful
is debatable.)

So while I agree that a GUI stdio could do something sensible with
VT, it appears that some non-GUI environments do so as well.

--
Michael Wojcik mi************@microfocus.com

This is a "rubbering action game," a 2D platformer where you control a
girl equipped with an elastic rope with a fishing hook at the end.
-- review of _Umihara Kawase Shun_ for the Sony Playstation
Dec 5 '05 #14
On Thu, 1 Dec 2005 22:43:37 +0000 (UTC), Jordan Abel
<jm****@purdue.edu> wrote:
On 2005-12-01, Richard Heathfield <in*****@invalid.invalid> wrote:
Randy Howard said:
There are no GUIs in standard C.


There might be. Standard C does not forbid an implementation to use GUI
stuff for, say, stdin, stdout, and stderr.


And an implementation that did might be better from some points of view,
as such an implementation could allow \v to work as expected. It's not
clear to me just what is expected, but clearly someone had something in
mind at some point other than doing nothing or printing an unspecified
graphical character.


Once upon a time there were printers that had vertical tabs, most
widespreadly the workhorse IBM 1403 series which used a small loop of
punched paper tape to specify "stops" for up to 12 IIRC channels, in
much the same fashion as typewriters and now word processor programs
allow you to set horizontal tab stops; by convention channel 1 was
top-of-form only, but others might be site or application dependent.
Many other manufacturers either used a compatible scheme, or an
incompatible but claimed better one. After about 1980 these started
falling out of fashion and I don't think I've seen any since 1990.

You might still find some dusty-deck Fortran that uses (used) these by
outputting carriage-control characters in column 1 other than space
and plus and '1', and maybe some COBOL although COBOL that needed
extensive page formatting would probably better use (have used) the
report-generator features instead of explicit code.

- David.Thompson1 at worldnet.att.net
Dec 14 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tony | last post by:
what package should I be downloading for solaris intel. Is there a howto on how to install it for solaris intel?
1
by: Mark Nelson | last post by:
Hi I'm trying to build Imaging 1.1.4 in Solaris 9, I get passwd the first step i.e the building of libImging. However when I execute a python setup.py build I get the following error - gcc...
0
by: Bob Swerdlow | last post by:
I'm trying to install MySQLdb 0.9.2 so I can access my MySQL database from python under Solaris 8. I found the notes on changing the include and lib paths and it seems to find them okay, but when...
1
by: Putz Ronald | last post by:
Hy! We got the same datamodell on Solaris and on WindowsXP. But there is a mojor difference in the Performance. The database on Windows is much faster than the one on Solaris although the...
0
by: rkusenet | last post by:
We are using a really old version of Solaris 2.6. Mysql.com site does not seem to have mysql binaries for this version of Solaris. The earliest version they have is for Solaris 8, which I believe...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
2
by: kepioo | last post by:
Hi all, I am trying to install PIL with python 2.3 on solaris X86, but I get this error message : building '_imaging' extension creating build/temp.solaris-2.10-i86pc-2.3 creating...
13
by: Mary Lei | last post by:
Does anyone know the link to obtain the tarball for db2 8.1 for solaris running on AMD 64 bit ? This is the entire db2 installation on a new system that does not have db2. Thanks.
0
by: mg | last post by:
When make gets to the _ctypes section, I am getting the following in my output: building '_ctypes' extension creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.