From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 357 invoked by alias); 8 Jun 2006 20:50:56 -0000 Received: (qmail 349 invoked by uid 22791); 8 Jun 2006 20:50:55 -0000 X-Spam-Check-By: sourceware.org Received: from www.nabble.com (HELO talk.nabble.com) (72.21.53.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Jun 2006 20:50:53 +0000 Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FoRSq-0008RE-MC for gcc-help@gcc.gnu.org; Thu, 08 Jun 2006 13:50:48 -0700 Message-ID: <4782372.post@talk.nabble.com> Date: Thu, 08 Jun 2006 20:50:00 -0000 From: revis To: gcc-help@gcc.gnu.org Subject: ASM + CPP with gcc/gpp MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: wounded2@libero.it X-Nabble-From: revis X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg00078.txt.bz2 Hello all, I have a problem, I have a class declared within main.cpp and there's the prototipe of a fuction like MyClass::Function(double); while the implementation is within an .s file, where I wrote the correct implementation. The problem is that gpp let me that don't know where to find the MyClass::Function(double)... I have in .s file this: .text .global _function__8FunctionT0d .... .... .... When I call it from main I get an 'undefined reference to ...' Why with simple C function with extern "C" void FF(); the gpp found the function in the ASM file while with a class function not ? If there's "the standard" problem, I can't use older versions, because with older version of gcc.exe and gpp.exe I get "General Protection Fault" with my machine, I have an AMD Turion64. Is there any way to link those files .s and .cpp with the version 2.03 of DJGPP? Thanks, Best regards. -- View this message in context: http://www.nabble.com/ASM-%2B-CPP-with-gcc-gpp-t1758150.html#a4782372 Sent from the gcc - Help forum at Nabble.com.