Hi George, thanks for the tip, I'll try it out.

The problem with gcc3 is that I get link errors at the end, which I think are bugs in gcc. I looked at the sources and couldn't figure out why it was generating these references. I'm attaching them below. This happened with both 3.3.1, which is the cygwin default, and 3.3.2, which I built myself to try to get around this issue.

There is yet another problem, that gcc3 gets stuck on frontends/qt2/Dialogs.C when compiling with -O, but removing the -O fixes that.

I'll try the stlport solution. If you have any idea about the linking problem, let me know.

Sivan

Here are some of the link errors:

mathed/.libs/libmathed.a(math_cursor.o)(.ctors+0x0):math_cursor.C: undefined ref
erence to `__GLOBAL__I_theCutBuffer'
mathed/.libs/libmathed.a(math_cursor.o)(.dtors+0x0):math_cursor.C: undefined ref
erence to `__GLOBAL__D_theCutBuffer'
mathed/.libs/libmathed.a(math_inset.o)(.ctors+0x0):math_inset.C: undefined refer
ence to `__GLOBAL__I__ZNK9MathInset6heightEv'
mathed/.libs/libmathed.a(math_inset.o)(.dtors+0x0):math_inset.C: undefined refer
ence to `__GLOBAL__D__ZNK9MathInset6heightEv'
frontends/.libs/libfrontends.a(QCharacterDialog_moc.o)(.ctors+0x0):QCharacterDia
log_moc.C: undefined reference to `__GLOBAL__I__ZNK16QCharacterDialog9classNameE
v'
frontends/.libs/libfrontends.a(QCharacterDialog_moc.o)(.dtors+0x0):QCharacterDia
log_moc.C: undefined reference to `__GLOBAL__D__ZNK16QCharacterDialog9classNameE
v'
frontends/.libs/libfrontends.a(QCitationDialog_moc.o)(.ctors+0x0):QCitationDialo
g_moc.C: undefined reference to `__GLOBAL__I__ZNK15QCitationDialog9classNameEv'
frontends/.libs/libfrontends.a(QCitationDialog_moc.o)(.dtors+0x0):QCitationDialo
g_moc.C: undefined reference to `__GLOBAL__D__ZNK15QCitationDialog9classNameEv'
frontends/.libs/libfrontends.a(QPrefsDialog_moc.o)(.ctors+0x0):QPrefsDialog_moc.
C: undefined reference to `__GLOBAL__I__ZNK12QPrefsDialog9classNameEv'
frontends/.libs/libfrontends.a(QPrefsDialog_moc.o)(.dtors+0x0):QPrefsDialog_moc.
C: undefined reference to `__GLOBAL__D__ZNK12QPrefsDialog9classNameEv'
frontends/.libs/libfrontends.a(iconpalette_moc.o)(.ctors+0x0):iconpalette_moc.C:
undefined reference to `__GLOBAL__I__ZNK11IconPalette9classNameEv'
frontends/.libs/libfrontends.a(iconpalette_moc.o)(.dtors+0x0):iconpalette_moc.C:
undefined reference to `__GLOBAL__D__ZNK11IconPalette9classNameEv'
collect2: ld returned 1 exit status


Georg Baum wrote:

Am Samstag, 7. Februar 2004 15:07 schrieb Angus Leeming:

Sivan Toledo wrote:

I am using 2.95 since I was not able to compile Qt with 3.3.


There are a number of threads on this ml about the steps that they needed to take to get the compiler and STLPort's library working happily together. Executive summary: they succeeded ;-)


A short summary: you need to install stlport somewhere. Then you invoke configure with

./configure $YOUR_USUAL_OPTIONS --with-extra-inc=/usr/include/stlport CXXFLAGS="-DCXX_GLOBAL_CSTD -ftemplate-depth-30 -nostdinc++" LDFLAGS="-lstlport -lm"

Of course you have to adapt the stlport include dir. You may also need different libs in LDFLAGS if configure fails and complains that the c compiler cannot produce executables. config.log will tell what libs are needed in this case.

But I wonder why you are not trying to fix the qt build with gcc 3.3? Since qt x11 on unix builds with gcc 3.3 this should be possible, or did you hit some serious problem?


Georg



Reply via email to