From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9e7f6206dac727ef X-Google-Attributes: gid1164f8,public From: system@SendSpamHere.ORG (Brian Schenkenberger, VAXman-) Subject: Re: run c programs on OpenVMS Date: 2000/07/12 Message-ID: <009ECF8D.E8ED9CA1@SendSpamHere.ORG>#1/1 X-Deja-AN: 645556263 References: <396B5CD0.14003247@email.sps.mot.com> <009ECECE.48036840@SendSpamHere.ORG> <8ki8ii$guo@gap.cco.caltech.edu> Organization: TMESIS Software Reply-To: system@SendSpamHere.ORG Newsgroups: comp.sys.dec X-Complaints-To: newsabuse@supernews.com In article <8ki8ii$guo@gap.cco.caltech.edu>, mathog@seqaxp.bio.caltech.edu (David Mathog) writes: >In article <009ECECE.48036840@SendSpamHere.ORG>, system@SendSpamHere.ORG (Brian Schenkenberger, VAXman-) writes: >>In article <396B5CD0.14003247@email.sps.mot.com>, Bing Lu writes: >>>Any one knows the commands to compile and run .cpp files on OpenVMS? >>>Thanks. >> >>Requires the C++ compiler... >> >>$ CXX filename.CPP >>$ CXXLINK filename >>$ RUN filename >> > >Well, yes, and no. Mostly no. The commands are right, but the odds of it >working for anything but a trivial program are vanishingly small. You >stand a better chance if the code has already been made to run on several >platforms, and especially if most of those do NOT use gcc as the compiler. >Take a look at the Makefile - does it cause any sort of standards checking >to be enabled? If not, well, best of luck to you - you'll need it! > >Oh yes, once you do get it to compile be prepared for extreme frustration >during the debugging phase. Debugging C++ on OpenVMS is a task well suited >for one of the inner circles of hell. > >Regards, > >David Mathog >mathog@seqaxp.bio.caltech.edu >Manager, sequence analysis facility, biology division, Caltech Hmmm... File CPLUSPLUS_SUX.CPP is: #include int eyesorelingo() { cout << "C++ is the software equivalent dog excrement!" << endl; return 1; } $ CXX CPLUSPLUS_SUX.CPP $ CXXLINK CPLUSPLUS_SUX $ RUN CPLUSPLUS_SUX C++ is the software equivalent dog excrement! $ Now, what part of the above is NOT CORRECT? -- VAXman- OpenVMS APE certification number: AAA-0001 VAXman(at)TMESIS(dot)COM