[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gcc and streambuf / switching compilers (woody)

hi all,

i would like to include streambuf into one of my programming projects.
by default, woody uses gcc 2.95.4, and this doesn't provide streambuf,
but streambuf.h (which exhibits different behaviour, however).

i noticed that woody also includes the gcc 3.0.4 compiler, and this one
does provide streambuf

the question is, how do change from one compiler to the other? is it
enough to simply use the other executable (i.e. change the g++ symlink
to use g++-3.0 instead of g++-2.95), or do i need to change something
else too, so that i won't run into problems?

i have tried to simply point the symlink at g++-3.0, but then i run into
linking problems:

main.o: In function `unsigned const& std::min<unsigned>(unsigned const&,
unsigned const&)':/usr/include/g++-v3/bits/ios_base.h(.text+0x1e):
undefined reference to `QApplication::QApplication[in-charge](int&,
char**)'/usr/include/g++-v3/bits/ios_base.h(.text+0x59): undefined
reference to
undefined reference to `QApplication::~QApplication
QDebugStreamD1Ev+0x3d): undefined reference to `qDebug(char const*,
eamD0Ev+0x3d): undefined reference to `qDebug(char const*,
eam8overflowEi+0x20): undefined reference to `qDebug(char const*, ...)'
main.o: In function make[3]: Leaving directory
truction_0(int, int)':/usr/include/g++-v3/bits/locale_facets.h:902:
undefined reference to `qDebug(char const*, ...)' collect2: ld returned
1 exit status

my thanks in advance for any help!


Reply to: