Path: utzoo!utgpu!water!watmath!clyde!rutgers!ukma!gatech!udel!rochester!bbn!uwmcsd1!ig!agate!ucbvax!TAMVENUS.BITNET!XPMAINT From: XPMAINT@TAMVENUS.BITNET (Shane Davis -- CSC XPrint Programmer) Newsgroups: comp.os.vms Subject: Use of RMS from VAX C Message-ID: <8802150715.AA23998@ucbvax.Berkeley.EDU> Date: 9 Feb 88 23:06:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 61 Hello again... I'm trying to use the RMS services $PARSE and $SEARCH to process wildcard file specifications. However, the VAX C compiler (V2.3) flags an error "Invalid right operand of an &= operator" at this statement: file_fab.fab$l_nam=&file_nam; Here is the meat of the program up to this point: #include struct FAB file_fab; struct NAM file_nam; . . . main() { . . . /* (before any other initialization of RMS blocks...) */ file_fab=cc$rms_fab; file_nam=cc$rms_nam; . . . file_fab.fab$l_nam=&file_nam; /* (other intializations of RMS blocks) */ . . . } These declarations and initializations are done in accordance with the RMS Manual and in this case are done exactly like the Guide to Programming in VAX C says. I was doing it my own way without any "cc$rms_fab" business and came up with the same error I get now when I'm doing things exactly by the book. Please help me...if I can't get this one straightened out, I'll have to write yet another 5-liner in MACRO to link with my C program in order to get around yet another fluke of VAX C... Operating system version is V4.6. Regards, --Shane Davis Programming Assistant Texas A&M Univ. Computing Svcs. Ctr. Software Systems Group ******************************************************************************** BITnet THEnet Internet XPMAINT@TAMVENUS THOR::XPMAINT xpmaint@venus.tamu.edu RSD1901@TAMSIGMA ZAC::RSD1901 -------- X233SD@TAMVM1 ------ x233sd@tamvm1.tamu.edu ------ CONS::RSD1901 rsd1901@cons.tamu.edu SPAN: UTSPAN::UTADNX::(THEnet addr) ********************************************************************************