* what library do I use to make windows, portably between Ultrix & VMS?
@ 1992-05-27 19:04 mlevin
1992-05-27 21:25 ` Ken Lee
0 siblings, 1 reply; 4+ messages in thread
From: mlevin @ 1992-05-27 19:04 UTC (permalink / raw)
I want to add a windows interface to my program. This program
works on Ultrix, SunOs, VMS, etc. What library (xlib?) should I use,
so that my window-making code is portble (i.e., compiles with minor
conditional compilation #ifdefs) between Unix and VMS with DecWindows?
Please send info to mlevin@presto.cs.tufts.edu.
Mike Levin
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: what library do I use to make windows, portably between Ultrix & VMS?
1992-05-27 19:04 what library do I use to make windows, portably between Ultrix & VMS? mlevin
@ 1992-05-27 21:25 ` Ken Lee
0 siblings, 0 replies; 4+ messages in thread
From: Ken Lee @ 1992-05-27 21:25 UTC (permalink / raw)
|> I want to add a windows interface to my program. This program
|> works on Ultrix, SunOs, VMS, etc. What library (xlib?) should I use,
|> so that my window-making code is portble (i.e., compiles with minor
|> conditional compilation #ifdefs) between Unix and VMS with DecWindows?
Use Motif. It is available on all 3 of your platforms. Code often
recompiles on each with no changes.
--
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: what library do I use to make windows, portably between Ultrix & VMS?
@ 1992-05-28 0:11 Terry R. Friedrichsen
1992-05-29 19:38 ` M Darrin Chaney
0 siblings, 1 reply; 4+ messages in thread
From: Terry R. Friedrichsen @ 1992-05-28 0:11 UTC (permalink / raw)
klee@wsl.dec.com writes:
>Mike Levin writes:
>> I want to add a windows interface to my program. This program
>> works on Ultrix, SunOs, VMS, etc. What library (xlib?) should I use,
>> so that my window-making code is portble (i.e., compiles with minor
>> conditional compilation #ifdefs) between Unix and VMS with DecWindows?
>Use Motif. It is available on all 3 of your platforms. Code often
>recompiles on each with no changes.
Um. Wait. You can't compile on VMS without changes; at the very least
you've gotta fix up the #includes to include DEC's mongo .h files instead
of all the nice functionally-split ones you get from MIT. And then you've
gotta struggle with the symbols that just mysteriously aren't there.
After that, yeah, code often recompiles on each with no changes. It even
links successfully. But then you gotta *run* it (unless you just write code
for typing practice :-). Here VMS loses again; code that works on several
Unix boxes mysteriously hangs, does weird stuff like draw incredibly tiny
windows instead of the nice sizes they should be, or ACCVIOs deep in the heart
of the X code somewhere.
Upgrade to the latest version of VMS, and the set of symptoms is the same,
but the programs that cause them change places ... sigh. Even the O'Reilly
examples do this sort of thing, so it ain't just me ...
At that point I just gave up on making my code work under VMS.
(Let me interject here that I haven't tried this with Motif widgets, just
Athena ones. And I haven't tried since VMS 5.4 first came out ... so if
things have improved since then, I wouldn't know about it.)
Then even if you get working code from somewhere, you have to fight your
way through cruft like "$ SET DISPLAY/CREATE/BLAH/WOOF/BARF" and
"$ CREATE/TERM/UP/DOWN/SIDEWAYS" - but that's an entirely different
flame war.
Based on the "etc." in the original poster's question, I really can't
personally recommend Motif - it may not run on the next platform you
want to port to. Personally, I stick with Athena widgets, which are
supposed to be everywhere; it's not as classy in some respects, but my
code works on other systems, and I can post it to the net with reasonable
assurance that everybody with a Unix X platform can run it.
Terry R. Friedrichsen
terry@venus.sunquest.com (Internet)
uunet!sunquest!terry (Usenet)
terry@sds.sdsc.edu (alternate address; I live in Tucson)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: what library do I use to make windows, portably between Ultrix & VMS?
1992-05-28 0:11 Terry R. Friedrichsen
@ 1992-05-29 19:38 ` M Darrin Chaney
0 siblings, 0 replies; 4+ messages in thread
From: M Darrin Chaney @ 1992-05-29 19:38 UTC (permalink / raw)
In article <40825@sunquest.UUCP> terry@venus.sunquest.com (Terry R. Friedrichsen) writes:
>klee@wsl.dec.com writes:
>
>>Mike Levin writes:
>
>>> I want to add a windows interface to my program. This program
>>> works on Ultrix, SunOs, VMS, etc. What library (xlib?) should I use,
>>> so that my window-making code is portble (i.e., compiles with minor
>>> conditional compilation #ifdefs) between Unix and VMS with DecWindows?
>
>>Use Motif. It is available on all 3 of your platforms. Code often
>>recompiles on each with no changes.
>
>Um. Wait. You can't compile on VMS without changes; at the very least
>you've gotta fix up the #includes to include DEC's mongo .h files instead
>of all the nice functionally-split ones you get from MIT. And then you've
>gotta struggle with the symbols that just mysteriously aren't there.
>
>After that, yeah, code often recompiles on each with no changes. It even
>links successfully. But then you gotta *run* it (unless you just write code
>for typing practice :-). Here VMS loses again; code that works on several
>Unix boxes mysteriously hangs, does weird stuff like draw incredibly tiny
>windows instead of the nice sizes they should be, or ACCVIOs deep in the heart
>of the X code somewhere.
>
>Upgrade to the latest version of VMS, and the set of symptoms is the same,
>but the programs that cause them change places ... sigh. Even the O'Reilly
>examples do this sort of thing, so it ain't just me ...
>
>At that point I just gave up on making my code work under VMS.
>
>(Let me interject here that I haven't tried this with Motif widgets, just
>Athena ones. And I haven't tried since VMS 5.4 first came out ... so if
>things have improved since then, I wouldn't know about it.)
Well, thanks for this bit of wisdom. You've astounded me. Anyway,
you'd better come tell my VMS box all this, because it's running Motif
just fine.
The demos that come with Motif under VMS, in
sys$common:[decw$motif.demos], are *exact* duplicates of the demos that
come with Motif for Ultrix, in /usr/lib/DXM/demos. By *exact*, I mean
line for line. And they compile and run under both platforms just fine.
If you write your programs correctly, there will be no problems.
Remember that VAX-C isn't ANSI compliant, but neither is cc. You need
to write your code for cc if you want the widest audience.
Anyway, the point is, correctly written code doesn't have to be "ported"
to VMS, just ftp'd and recompiled. The same code should work under VMS,
Ultrix, and HP-UX without changes. The Motif demos do...
Darrin
--
mdchaney@iubacs mdchaney@bronze.ucs.indiana.edu mdchaney@rose.ucs.indiana.edu
"It's a marvel of vegetable containment..."
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1992-05-29 19:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-05-27 19:04 what library do I use to make windows, portably between Ultrix & VMS? mlevin
1992-05-27 21:25 ` Ken Lee
-- strict thread matches above, loose matches on Subject: below --
1992-05-28 0:11 Terry R. Friedrichsen
1992-05-29 19:38 ` M Darrin Chaney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox