From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27164 invoked by alias); 22 Aug 2008 01:49:00 -0000 Received: (qmail 26922 invoked by uid 22791); 22 Aug 2008 01:48:59 -0000 X-Spam-Check-By: sourceware.org Received: from mail01.tanner.com (HELO mail01.tanner.com) (70.137.39.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 22 Aug 2008 01:48:24 +0000 Received: (qmail 11959 invoked from network); 22 Aug 2008 01:48:22 -0000 Received: from unknown (HELO exchange01.tanner.com) (192.168.104.27) by mail01.tanner.com with SMTP; 22 Aug 2008 01:48:22 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-puzzleid: {F5B221A3-2B23-491B-A3C4-6F2D64071D27} Content-class: urn:content-classes:message x-cr-hashedpuzzle: GmQ= Baji C5lA EEOE Eh8S En6p Fvyd GSQB G7Dv HlxS IDBj Iu1J Kode LLy4 LQa8 LfjE;1;ZwBjAGMALQBoAGUAbABwAEAAZwBjAGMALgBnAG4AdQAuAG8AcgBnAA==;Sosha1_v1;7;{F5B221A3-2B23-491B-A3C4-6F2D64071D27};cwBlAHkAcgBhAG4ALgBhAHYAYQBuAGUAcwB5AGEAbgBAAHQAYQBuAG4AZQByAC4AYwBvAG0A;Fri, 22 Aug 2008 01:48:19 GMT;ZQB4AHQAZQByAG4AIAAiAEMAIgAgAEYAcgBvAG0AIABjAG8AbQBtAGEAbgBkACAAbABpAG4AZQA= Subject: extern "C" From command line Date: Fri, 22 Aug 2008 01:52:00 -0000 Message-ID: In-reply-to: <200808191257.28899.zepm@gatech.edu> References: <200808191257.28899.zepm@gatech.edu> From: "Seyran Avanesyan" To: X-IsSubscribed: yes 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: 2008-08/txt/msg00227.txt.bz2 Hi, Is there any way to make exported function names unmangled without using extern "C"?=20 I'm compiling c++ file to a dll. Exported functions doesn't have extern "C" specified for them, so their names got mangled. The file cannot be edited. gcc -x c++ source.cpp -o source.o=20=09 gcc -shared -o source.dll other_source.o source.o=20 If I put required names into .def file but compile as c++ file, because of mangling I got errors: "Can not export ZZZZ: symbol not defined" Thanks, Seyran