Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Problem with RMS structures in DEC C?
@ 1995-06-29  4:00 P A Keller
  1995-06-29  4:00 ` Bruce Milton
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: P A Keller @ 1995-06-29  4:00 UTC (permalink / raw)


Hi everyone. Can anyone explain why the following minimal code won't
compile without error under DEC C? VAX C is fine, as well as DEC C with the
/STANDARD=VAXC option. As far as I can see, there is nothing here which
conflicts with the example in the DEC C documentation, or am I just being
dim?

Thanks,
Peter.


#include <rms.h> 

struct FAB infab; 
struct XABFHC inxab; 

void func (void) { 

   infab = cc$rms_fab; 
   inxab = cc$rms_xabfhc; 
   infab.fab$l_xab = &inxab; 
}

produces

   infab.fab$l_xab = &inxab; 
...^ 
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value
"&inxab" is "struct xabfhcdef", which is not compatible with "char". 
at line number 10 in file DKA100:[USERS.PETER.CIF]RMS.C;5 

The compiler is DEC C V4.0-000 under OpenVMS AXP V6.1

========================================================================
Peter Keller.            \ 
Dept. of Biology and      \ "It is a pity that people are being killed
    Biochemistry,          \  by my guns"
University of Bath,         \ 
Bath, BA2 7AY, UK.           \          --- Mikhail Kalashnikov
------------------------------\-----------------------------------------
Tel. (+44/0)1225 826826 x 4302 | Email: P.A.Keller@bath.ac.uk (Internet)
Fax. (+44/0)1225 826449        |   P.A.Keller%bath.ac.uk@UKACRL (BITNET)
========================================================================



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1995-07-06  4:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-29  4:00 Problem with RMS structures in DEC C? P A Keller
1995-06-29  4:00 ` Bruce Milton
1995-06-29  4:00 ` Carl J Lydick
1995-06-30  4:00 ` David Claude Brown
1995-06-30  4:00   ` Carl J Lydick
1995-07-03  4:00 ` P A Keller
1995-07-05  4:00   ` Hein RMS van den Heuvel
1995-07-06  4:00   ` Ken Cowan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox