Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!munnari!otc!metro!basser!usage!elecvax!cheops!ashley From: ashley@cheops.eecs.unsw.oz (Ashley M. Aitken) Newsgroups: comp.sys.apollo Subject: C++ vs Apollo Sys Files ? (Long) Compatability ? Keywords: c++ apollo system compatability Message-ID: <1093@cheops.eecs.unsw.oz> Date: 6 Mar 89 15:38:02 GMT Organization: EE & CS, Uni N.S.W., Sydney, Australia Lines: 86 Howdy, Just when I thought C++ would add some productivity to my existence all hell breaks loose (forgive me please, it is late, very late). I am having severe problems with C++ and Apollo C System files compatability. Can someone, anyone shed some light ? The situation is as follows. I am programming in C++ Version 1.2.1 under SR10.1 with SR10? release of C (I think). Anyway the C++ language works well so the C must be later that V6.00. The problems are with Header Files, that seem to be incompatible with this C++ (but not the C). For example .. The following code (I know some of them ain't C++ files ie stdio.h is not ) #include #include #include #include #include #include main() { } when compiled with ver sys5.3 /bin/ccxx ... yields the following errors and [NOTE I AM USING THE SYS5.3 FILES from BSD (is this a problem ?)] "/usr/include/apollo/base.h", line 109: error: high __attribute : type expected (high is not a type name) line 109: error: bad base type: type name high line 109: error: argument type expected for __attribute() caused by the new __attribute in the following I believe 10/10/88 cas make sizeof time_$clock_t alignment insensitive change #attribute to __attribute #if _ISP__M68K || _ISP__A88K time_$clockh_t high __attribute((aligned(1))); and these errors "/usr/include/apollo/ios.h", line 570: error: function declaration in argument list ( ios_$set_locate_buffer_size()) line 577: error: function declaration in argument list ( ios_$switch()) line 627: error: function declaration in argument list ( ios_$inq_path_name()) Sorry, too many errors caused by the #options statement in the following I believe ios_$get_handle( ios_$id_t &strid, uid_$t &type_uid, status_$t *status ) #options(a0_return); extern void ios_$set_locate_buffer_size( ios_$id_t &id, short &size, status_$t *status ); It seems to me that the C++ is lagging behind the C but I am not sure, it could easily be just stupid mistakes on my behalf. But alas, it is very frustrating. The release notes for the C++ recommend the use of these very /usr/include /apollo/*.h header files (cos they have the prototyping and variable reference included.) HELP: Could someone (perhaps at Apollo) please set me straight once and for all about what version of what goes with what in this C++ system call situation. Thanks In Advance, Ashley Aitken. E-MAIL ashley@cheops.unsw.oz ACSnet ashley%cheops.unsw.oz@uunet.uu.net ARPAnet ashley@cheops.unsw.oz.au ARPAnet {uunet,ukc,ubc-vision,mcvax}!munnari!cheops.unsw.oz!ashley UUCP ashley%cheops.unsw.oz@australia CSnet ashley%cheops.unsw.oz@uk.ac.ukc JAnet