[comp.lang.modula2] X-programming in SUN Modula2

cshera@uta.fi (Heikki Rasim{ki) (04/16/91)

         Hello Roy ( and you others reading this newsgroup ) 

         To Roy Starkey : Sorry for a late answer. Mail kept bouncing back.

         My experiences in x-programming with m2 are limited.
         So far I have managed to create a window with a canvas in it.
         That worked fine and I suppose the rest of m2 procedures
         are going to do so too. Only bad thing I have noticed has
         been an enourmous use of space. That most simple single canvas-
         window program produced a 1.2 Mb a.out then compiled.

         I have been using Sun M2 only.

         Heikki
         cshera@uta.fi

         PS. The Riddle of CONST definition PW_POLYGON_2 = 6; in xview/pixwin.def
             is still without a solution. In one reply ( (thank you)s ) I was
             told about CCALL. It is in SunM2 too, but I find it hard to use :

             1) Converting C-structures to M2-correspondings
             2) If c-function wanted is not a hm.. " stantard " c-function
                no a.out is produced. Maybe I ought to try with more -l options.






   

Ben.Stuyts@p6.f202.n281.z2.fidonet.org (Ben Stuyts) (04/20/91)

 HR>     My experiences in x-programming with m2 are limited.
 HR>     So far I have managed to create a window with a canvas in it.
 HR>     That worked fine and I suppose the rest of m2 procedures
 HR>     are going to do so too. Only bad thing I have noticed has
 HR>     been an enourmous use of space. That most simple single canvas-
 HR>     window program produced a 1.2 Mb a.out then compiled.

You must be linking with the -Bstatic flag. Try linking without this
flag or even with the -Bdynamic flag. This way you should be able
to use the shared libraries for X. Unless, of course, you don't have
any shared libraries for X.

In any case, Sun's OpenWindows X implementation comes with these shared libs.

Best regards,
Ben


--  
uucp: uunet!m2xenix!puddle!2!281!202.6!Ben.Stuyts
Internet: Ben.Stuyts@p6.f202.n281.z2.fidonet.org