linking error in qt3 program

gilles.degottex kde-cygwin@mail.kde.org
Wed, 15 Jan 2003 13:00:24 +0100


I solved my problem
    compiling was done with gcc 3.2 and the lib was built with gcc 2.9* ...

gilles.degottex wrote:

> Hi hi
>
>     I did a qt3 program under rh8 linux, everything goes fine, 
> compiling runing, etc ...
>     then I try to compile it under cygwin because, like you surely 
> know, qt3 is not available for Visual Studio 6.
>
>     here are the commands:
>
> uic gui/form.ui -o gui/form.h
> uic gui/inform.ui -o gui/inform.h
> uic gui/AboutDialog.ui -o gui/AboutDialog.h
> c++ -I/lib/qt3/include  -o obj/main.o -c main.cpp
> c++ -I/lib/qt3/include  -o obj/FormCustom.o -c FormCustom.cpp
> ...
> moc gui/AboutDialog.h -o gui/moc_AboutDialog.cpp
> c++ -I/lib/qt3/include  -o obj/moc_AboutDialog.o -c 
> gui/moc_AboutDialog.cpp
> c++ -I/lib/qt3/include  -o obj/Ordinapoche.o -c Ordinapoche.cpp
> c++ -L/lib/qt3/lib -lqt obj/main.o obj/FormCustom.o obj/form.o 
> obj/moc_form.o obj/inform.o obj/moc_inform.o obj/AboutDialog.o 
> obj/moc_AboutDialog.o obj/Ordinapoche.o -o Ordp
>
>     and at linking step I get a lot of:
>
> obj/main.o(.text+0xc2):main.cpp: undefined reference to 
> 'QApplication::QApplication[in-charge](int&, char**, bool)'
> obj/main.o(.text+0xea):main.cpp: undefined reference to 
> 'QString::operator=(char const*)'
> ...
> obj/FormCustom.o(.data$_ZTV10FormCustom+0xf0):FormCustom.cpp: 
> undefined reference to 'QMainWindow::sizeHint() const'
>
>
> thanks for all :)
>
> _______________________________________________
> kde-cygwin mailing list
> kde-cygwin@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-cygwin
>