www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/01/30/00:32:36

X-pop3-spooler: POP3MAIL 2.1.0 b 3 961213 -bs-
Delivered-To: pcg AT goof DOT com
Message-ID: <19980129153001.29794@cerebro.laendle>
Date: Thu, 29 Jan 1998 15:30:01 +0100
From: Marc Lehmann <pcg AT goof DOT com>
To: "Kerber, Ulrich" <ukerber AT cardis DOT de>
Cc: beastium <beastium-list AT Desk DOT nl>
Subject: Re: pgcc compiler/linker problems
References: <C1059C21283BD111B4C400A024CAEFC6068FD4 AT hathi DOT cardis DOT de>
Mime-Version: 1.0
X-Mailer: Mutt 0.88
In-Reply-To: <C1059C21283BD111B4C400A024CAEFC6068FD4@hathi.cardis.de>; from Kerber, Ulrich on Thu, Jan 29, 1998 at 08:37:31AM +0100
X-Operating-System: Linux version 2.1.82 (root AT cerebro) (gcc version pgcc-2.91.05 980122 (gcc-2.8.0 release))
Status: RO
Lines: 49

On Thu, Jan 29, 1998 at 08:37:31AM +0100, Kerber, Ulrich wrote:
> Hi there,
> while reading about a pentium optimized compiler, I decided to download
> and to use this nice
> featured compiler!
> After successfully installing the several tar-files, I started a
> test-compiling:
> There were no problems while creating the objectcode in generell but if
> linking starts, I receive the following error messages:
> 
> (Error-Messages while linking (shared) libraries)
> 
> gcc main.o -o t1 -L/usr/local/qt-1.31/lib -lqt -lm

linking c++ programs with gcc (pgcc) is tricky (i.e. don't try it),
link your c++ programs with g++ (pg++) instead.

> gcc -O6 -mcpu=pentium -o SceneViewer SceneViewer.o SoSceneViewer.o
> SvManipList.o
>  -L${OIVHOME}/lib -L${OGLHOME}/lib libwidget.a -lInventorXt -lInventor
> -limage -lMesaGLU -lMesaGL
>  -L/usr/X11R6/lib -lXm -lXt -lXext -lX11 -lm -ldl 
> SoSceneViewer.o: In function `SoSceneViewer type_info function':
> SoSceneViewer.o(.text+0x8af0): undefined reference to `SoXtComponent
> type_info function'
> SoSceneViewer.o(.text+0x8af6): undefined reference to `SoXtComponent
> type_info node'

you have compiled a program with rtti (a c++ language feature), while you
haven't compiled a library with it.. either compile your libraries,
or compile you programs with "-fno-rtti" to disable rtti.

in gcc-2.7.2, rtti was disabled by default (due to some problems), so all
files compiled with g++-2.7.2 miss type_info nodes (which 2.7.2 didn't
create anyway).

pgcc (egcs, gcc-2.8.0) does enable rtti by default (as well as exceptions).

> What does it mean; what to do??

please let me know wether this solves your problems!

      -----==-                                              |
      ----==-- _                                            |
      ---==---(_)__  __ ____  __       Marc Lehmann       +--
      --==---/ / _ \/ // /\ \/ /       pcg AT goof DOT com       |e|
      -=====/_/_//_/\_,_/ /_/\_\                          --+
    The choice of a GNU generation                        |
                                                          |

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019