[PyKDE] Post Build Runtime problems libqtcmodule.so: undefined
symbol:static_QUType_ptr
Phil Thompson
phil at river-bank.demon.co.uk
Thu May 2 12:09:01 BST 2002
Liam Herron wrote:
>
> I have even upgraded to version 3.0.4 of gcc but I now get the following
> error linking error:
I've never tried gcc 3.x myself. Did you re-build everything (including
Qt) when you changed compiler?
> g++ -fno-exceptions -O2 -o pyuic main.o uic.o form.o object.o subclassing.o
> embed.o widgetdatabase.o domtool.o parser.o
> -L/usr/local/lib/python2.2/site-packages
> -L/home/herronli/qt-x11-free-3.0.3/lib -lqt -L/usr/X11R6/lib -lSM -lICE
> -lX11 -lz
> main.o: In function `main':
> main.o(.text+0x10): undefined reference to `QString::shared_null'
> main.o(.text+0x73): undefined reference to `QString::shared_null'
> main.o(.text+0xeb): undefined reference to `QApplication::QApplication(int&,
> char**, bool)'
> main.o(.text+0xf0): undefined reference to `QString::shared_null'
> main.o(.text+0x148): undefined reference to `QCString::QCString(char
> const*)'
> main.o(.text+0x162): undefined reference to `QGArray::msg_index(unsigned)'
> main.o(.text+0x1a0): undefined reference to `QString::QString(char const*)'
>
> etc...
There must be something wrong with your Qt setup. Can you compile and
run the Qt example programs?
> Any quick ideas on this? Do I have to put somethings in the LD_LIBRARY_PATH
> or something?
This is a build problem - LD_LIBRARY_PATH only comes into play when you
are running programs.
Phil
More information about the PyQt
mailing list