From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13960 invoked by alias); 8 Aug 2002 13:45:35 -0000 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 Received: (qmail 13937 invoked from network); 8 Aug 2002 13:45:31 -0000 Received: from unknown (HELO www.fastmail.fm) (209.61.183.86) by sources.redhat.com with SMTP; 8 Aug 2002 13:45:31 -0000 Received: from www.fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 8467C6DADF; Thu, 8 Aug 2002 08:45:27 -0500 (CDT) X-Epoch: 1028814327 X-Sasl-enc: ch5pYZFpDYBMNipglHV0XQ Received: from fastmail.fm (x1-6-00-e0-81-03-b8-78.k35.webspeed.dk [62.242.176.174]) by www.fastmail.fm (Postfix) with ESMTP id 3E3516DA03; Thu, 8 Aug 2002 08:45:26 -0500 (CDT) Message-ID: <3D5275F7.43A7E06A@fastmail.fm> Date: Thu, 08 Aug 2002 06:45:00 -0000 From: bjorn rohde jensen Reply-To: bjensen@fastmail.fm X-Accept-Language: en MIME-Version: 1.0 To: Jarmo Cc: gcc-help@gcc.gnu.org Subject: Re: Link problems References: <200208081624.26563.modem626@kymp.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00067.txt.bz2 Hi Jarmo, You can not in general crosslink object code generated by different compilers. You should use one and only one compiler to create an application. One does usually not have to rebuild the system C libraries, but C++ libs etc definitely should be. The unresolved symbols are probably due to different name mangling schemes employed by gcc-2.96, which is not actually an official gcc release, and gcc-3.0.4. This is done to protect users from linking incompatible object files to create applications with spectacularly odd behaviour, such as random core dumps despite code correctness and so on. Yours sincerely, Bjorn