From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21758 invoked by alias); 30 Mar 2010 15:15:45 -0000 Received: (qmail 21745 invoked by uid 22791); 30 Mar 2010 15:15:42 -0000 X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from franklin.physics.purdue.edu (HELO mail.physics.purdue.edu) (128.210.146.222) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Mar 2010 15:15:31 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.physics.purdue.edu (Postfix) with ESMTP id BBEF6ABE0F8 for ; Tue, 30 Mar 2010 11:15:28 -0400 (EDT) Received: from mail.physics.purdue.edu ([127.0.0.1]) by localhost (franklin.physics.purdue.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 91653-04 for ; Tue, 30 Mar 2010 11:15:27 -0400 (EDT) Received: from io.physics.purdue.edu (io.physics.purdue.edu [128.210.146.165]) by mail.physics.purdue.edu (Postfix) with ESMTP id 1F546ABE0E0 for ; Tue, 30 Mar 2010 11:15:27 -0400 (EDT) Message-ID: <4BB2158F.7050100@physics.purdue.edu> Date: Tue, 30 Mar 2010 17:50:00 -0000 From: Glenn H Sembroski User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Accessing C++ function with Mixed Upper/Lower case name from F90 subroutine Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00348.txt.bz2 Hi, I have a problem trying to prepare a large simulation package, using mixed F90 and C++ routines, to compile and build under GCC (g++, and gfortran). The problem is I have a C++ function: Gauss() which is called from an F90 routine: x=gauss() This package was made able to build under the Intel fortran compiler by adding to the fortran file the Intel compile directive: !DEC$ ATTRIBUTES ALIAS:'Gauss' :: gauss I attempted to build this program using GCC where for F90 code the gfortran compiler option -fno-underscoring was used. Presently my fortran routine won't build. It gets the error: 485: undefined reference to `gauss' So, my question is, is there a way in GCC to enable the linker to find the C++ 'Gauss' method? Thanks, Dr. Glenn Sembroski Physics Dept.,Purdue University sembrosk@purdue.edu