Article View: gnu.gcc.help
Article #49835Interfacing with other compilers
From: Claus Bendtsen
Date: Wed, 22 Dec 1993 07:33
Date: Wed, 22 Dec 1993 07:33
30 lines
1707 bytes
1707 bytes
Hi there, I first sent this message to bug-gcc but since I have received no response I now try help-gcc. I would like to use g++ on each node of a Thinking Machines, CM5 and in the process of doing that I've run into a few problems. I currently have a working model of the following kind, a) main program in C, calls C++ main program adding _FiPPc. b) C++ program works, calls fortran in order to use the CM5, adding _ to all calls, which further more are defined as extern "C". c) Linking using fortran linker. Now my question is, since I would like not to have to include the C main program I need the gcc to be able to generate some routines (e.g. main) without expanding them, just treat them as ordinary C in order for the fortran linker to find them. Further more I would like not to have to add the underscore for my fortran routines by using a different language style in the extern "??" definition. I can't find any language styles in the documentation but the C++ standard has "room" for it. Any help would greatly be appreciated. Cheers, Claus
Technical Details
Message-ID:
<9312220727.AA18016@fysik.uni-c.dk>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!fysik.uni-c.dk!unicbeShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,16dfb054e983fe70,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-12-21 23:44:04 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!fysik.uni-c.dk!unicbe From: unicbe@fysik.uni-c.dk (Claus Bendtsen) Newsgroups: gnu.gcc.help Subject: Interfacing with other compilers Date: 22 Dec 1993 02:33:03 -0500 Organization: GNUs Not Usenet Lines: 31 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9312220727.AA18016@fysik.uni-c.dk>