Mail Archives: pgcc/1998/01/30/00:32:36
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 -