Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Solaris, Xdesigner, C......

Reply
Thread Tools

Solaris, Xdesigner, C......

 
 
jasclz@aol.com
Guest
Posts: n/a
 
      12-01-2005
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

 
Reply With Quote
 
 
 
 
Kenny McCormack
Guest
Posts: n/a
 
      12-01-2005
In article < .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.

 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      12-01-2005
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) kst- <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.
 
Reply With Quote
 
jasclz@aol.com
Guest
Posts: n/a
 
      12-01-2005
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 < .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.


 
Reply With Quote
 
Mark McIntyre
Guest
Posts: n/a
 
      12-01-2005
On Thu, 01 Dec 2005 20:43:51 GMT, in comp.lang.c , Keith Thompson
<kst-> wrote:

> 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 =----
 
Reply With Quote
 
Keith Thompson
Guest
Posts: n/a
 
      12-01-2005
Mark McIntyre <> writes:
> On Thu, 01 Dec 2005 20:43:51 GMT, in comp.lang.c , Keith Thompson
> <kst-> wrote:
>
>> 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) kst- <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.
 
Reply With Quote
 
Keith Thompson
Guest
Posts: n/a
 
      12-01-2005
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) kst- <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.
 
Reply With Quote
 
Randy Howard
Guest
Posts: n/a
 
      12-01-2005
wrote
(in article
< .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





 
Reply With Quote
 
Richard Heathfield
Guest
Posts: n/a
 
      12-01-2005
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)
 
Reply With Quote
 
Randy Howard
Guest
Posts: n/a
 
      12-01-2005
Richard Heathfield wrote
(in article
<dmnt71$kv5$>):

> 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





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57