Mailinglist Archive: opensuse (1377 mails)
| < Previous | Next > |
[SuSE Linux] Compiler for kernel and C++ Development w. Exceptions!
- From: ingi@xxxxxxx (Ingvaldur Sigurjonsson)
- Date: Tue, 25 Aug 1998 23:01:26 +0200
- Message-id: <01bdd06b$86082240$010c0a0a@winp6>
Hi,
I keep screewing things up on my SuSE 5.2 and now I'm loosing patience.
i) Apparently compiling the kernel 2.0.3x with compiler
above 2.7.2.x is not supported.
ii) The 2.7.2.x compiler does have experimental implementations
of exceptions.
iii) Building C++ applications requires solid exception
handling.
So if I want to be able to build my kernel I need a 2.7.2.x compiler and to
be able to develop solid c++ applications I need at least 2.8.1.x (I have
egcs-1.0.3a).
How do I have two compilers installed, to accomplish my two requiredments,
without any interference?
I read in the GCC FAQ/HOWTO that using the
"--prefix=/not/the/same/as/gcc" instead of "-V version" was recommended, but
no other links were mentioned.
I find the GCC-HOWTO which I have quite old (It covers 2.7.2).
I have been able to build and successfully boot kernels built with both
2.8.1 and egcs-1.0.3a (gcc version egcs-2.90.29). What does it mean that
those builds are not supported? (besides very few answers when asking in
newsgroups/mailing lists).
No I'm not finished :)
I've installed the glib 2 (libc6) (hey everybody seems to be going with glib
2).
I tried to install the libg++ 2.7.2 to use with gcc 2.7.2.3, but the
build-process failed because of the "./libio/libio.h" did NOT contain some
"_IO_cookie_..." struct definition which was defined in
"/usr/include/libio.h"
I then built and installed the egcs-1.0.3a but when I try to build a very
simple HelloWorld program i c++ I get the error:
/usr/local/lib/libstdc++.so: undefined reference to 'filebuf virtual table'
collect2: ld returned 1 exit status
Can anyone tell me why?
I did not declare and define any virtual functions in my simple class.
Neither did it help to do so.
The libstdc++.so is a link to libstdc++.so.2.8.0, I believe installed by the
egcs-release.
I know some of the questions above do not really belong to SuSE but I was
hoping that some kind reader would feel pity for me and answer them anyhow.
Just for fun I can tell that for some years now I usually have more than 3
c++ compilers installed on my NT Workstation and Server machines. Symantec
has been my favorite but I'm forced to use MS Dev Studio 97 nowdays. Borland
C++ is also an old friend which I miss in linux. I've just started to play
with CodeWarrior C++ compiler. I do not find it difficult to have so many
compilers installed at once on NT. There are (almost) no interferences
between them.
I downloaded and burned 3 CD's with Debian GNU/Linux. The have gcc 2.8.x and
egcs in their release. I have still not decided if I should abandon SuSE but
maybe I'll be forced to do so because of their packaging of the C++
compilers i'm intressted in and their debian-package-manager. Still today I
prefer SuSE and I'll certainly stay SuSE if I get this working. Yes I bought
SuSE 5.2.
If I could sell my problems right now I would get rich like Bill, atleast
that's how he got rich. Maybee the packaging is the key...
Best regards
- Ingvaldur Sigurjonsson
-
To get out of this list, please send email to majordomo@xxxxxxxx with
this text in its body: unsubscribe suse-linux-e
| < Previous | Next > |