[SLE] gcc-2.95.3 can't compile a c++ sample SuSE 8.2 x86
From: Stefan Parvu (sp_at_sunguru.com)
Date: 08/30/03
- Previous message: Praise: "Re: [SLE] For or against ..Hyperthreading."
- Next in thread: Stefan Parvu: "Re: [SLE] gcc-2.95.3 can't compile a c++ sample SuSE 8.2 x86"
- Reply: Stefan Parvu: "Re: [SLE] gcc-2.95.3 can't compile a c++ sample SuSE 8.2 x86"
- Reply: Philipp Thomas: "Re: [SLE] gcc-2.95.3 can't compile a c++ sample SuSE 8.2 x86"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: suse-linux-e@suse.com Date: Sat, 30 Aug 2003 21:40:58 +0300
Hi,
I would like to report a problem about compiling a simple code with gcc (g++)
from: /opt/gcc295/bin/gcc
Im using the old gcc compiler.
stefan@jupiter:~> gcc --version
2.95.3
stefan@jupiter:~> which gcc
/opt/gcc295/bin/gcc
Lyx-1.3.2 can't compile using gcc-2.95.3 due some problems I think with
libstd++ . Have a look:
#include <qglobal.h>
#include <qstring.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
QString s("mangle_failure");
#if (QT_VERSION < 221)
break_me_(\\);
#endif
;
return 0;
}
This code works fine with gcc-3.3.1
When I set my PATH to /opt/gcc295/bin the compiler will give:
stefan@jupiter:~> export PATH=/opt/gcc295/bin:$PATH
stefan@jupiter:~> g++ -O -Wno-non-template-friend -ftemplate-depth-30
-I/usr/lib/qt3/include -L/usr/lib/qt3/lib -isystem /usr/X11R6/include test.cc
-lSM -lICE -lc -lm -L/usr/X11R6/lib -lX11 -lqt
/tmp/ccRoZCNx.o(.text+0x13): In function `main':
: undefined reference to `QString::QString(char const *)'
/tmp/ccRoZCNx.o(.text+0x23): In function `main':
: undefined reference to `QString::shared_null'
/tmp/ccRoZCNx.o(.text+0x2e): In function `main':
: undefined reference to `QStringData::deleteSelf(void)'
/tmp/ccRoZCNx.o(.text+0x4c): In function `main':
: undefined reference to `QString::shared_null'
/tmp/ccRoZCNx.o(.text+0x57): In function `main':
: undefined reference to `QStringData::deleteSelf(void)'
collect2: ld returned 1 exit status
any idea what can we do. Lyx132 can't compile because ./configure fails
exactly to this point.
Many thanks
Stefan
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Praise: "Re: [SLE] For or against ..Hyperthreading."
- Next in thread: Stefan Parvu: "Re: [SLE] gcc-2.95.3 can't compile a c++ sample SuSE 8.2 x86"
- Reply: Stefan Parvu: "Re: [SLE] gcc-2.95.3 can't compile a c++ sample SuSE 8.2 x86"
- Reply: Philipp Thomas: "Re: [SLE] gcc-2.95.3 can't compile a c++ sample SuSE 8.2 x86"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [RFC][PATCH-2.6] Clean up and merge compiler-*.h
... the kernel headers in include/linux to include/linux-abi. ... * Common definitions
for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten
here ... (Linux-Kernel) - RE: [Patch] asm workarounds in generic header files
... And intel.diff patch adds Intel compiler specific definitions. ... * Common
definitions for all gcc versions go here. ... +/* Optimization barrier */ ...
(Linux-Kernel) - compiile Regina REXX - dl* not found
... I'm trying to compile Regina Rexx on my Zaurus and I get the following ... ../libregina.so:
undefined reference to `dlerror' ... checking for one of the following C compilers: xlC
gcc cc c89 acc... ... checking whether the C compiler is a cross-compiler... ...
(comp.lang.rexx) - Re: compiile Regina REXX - dl* not found
... I'm trying to compile Regina Rexx on my Zaurus and I get the following ... ./libregina.so:
undefined reference to `dlerror' ... checking for one of the following C compilers: xlC
gcc cc c89 acc... ... checking whether the C compiler is a cross-compiler... ...
(comp.lang.rexx) - Re: Linux Kernel include files
... And Joerg said the Sun cc supported "long long" before gcc did. ... That way
if you have any kind of vaguely-long-long-compatible compiler then ... There had been need
of rain for many days. ... (Linux-Kernel)