Re: g++ vs. g++33: conflicts with qt 3.1.2 on FreeBSD 4.8
Hi, > FreeBSD 4.8 and Qt 3.1.2 compiled "as is" from the portscollection. > I have a brief Qt code: [...] > Where CC is either "/usr/bin/g++" or "/usr/local/bin/g++33" > With g++ this compiles fine. > > But with g++33, I get an error, that says: [...] This is due to the ABI changes that were introduced with gcc 3. Unless you recompile Qt with g++33 (and probably its dependencies), I do not know of any solution to fix your link error. If you really want to use g++33, you might consider upgrading to FreeBSD 5, which comes with that version of gcc as the system compiler. Regards, Simon signature.asc Description: Digital signature
g++ vs. g++33: conflicts with qt 3.1.2 on FreeBSD 4.8
Hi, FreeBSD 4.8 and Qt 3.1.2 compiled "as is" from the portscollection. I have a brief Qt code: #include #include int main () { QString s("mangle_failure"); return 0; } I compile this as follows: ${CC} MyQtCode.C -g -O -pthread -I/usr/X11R6/include -L/usr/X11R6/lib -I/usr/local/include -L/usr/local/lib \ -lSM -lICE -lc -lm -lX11 -lqt-mt Where CC is either "/usr/bin/g++" or "/usr/local/bin/g++33" With g++ this compiles fine. But with g++33, I get an error, that says: /var/tmp//ccI2rls3.o: In function `main': /home/lahaye/MyQtCode.C:6: undefined reference to `QString::QString[in-charge](char const*)' /var/tmp//ccI2rls3.o: In function `main': /usr/X11R6/include/qstring.h:770: undefined reference to `QString::shared_null' /usr/X11R6/include/qstring.h:771: undefined reference to `QStringData::deleteSelf()' collect2: ld returned 1 exit status Any idea how I can fix this? Thanks, Rob. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"