You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, August 16th 2009, 9:43am

Qt Creator - Just one linking error

:-1: error: collect2: ld returned 1 exit status // Just only one error please help me somone for Qt Creator

//.pro file
SOURCES += main.cpp
TEMPLATE = app
LIBS += -Lpathtolib -lfoo
QT += gui

//code
#include <QApplication>
#include <QPushButton>
int main(int argc, char **argv)
{
QApplication app(argc,argv);
QPushButton button("Show");
button.show();
return app.exec();
}
//////////////////////////////////////////////////////////////////////////////////////////////

2

Sunday, August 16th 2009, 10:56am

Qt Creator Errors Please help me someone..

Dear Friends
why msvc link is required in this. I am running only Qt Creator. ! Please help me to resolve my Creator !
I am not able to compile Qt Creator Just I have installed. it's giving these errors.


C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c::-1: error: undefined reference to `__cpu_features_init'
C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c::-1: error: undefined reference to `_pei386_runtime_relocator'
fu000001.o::-1: error: undefined reference to `libmsvcrt_a_iname'
fu000002.o::-1: error: undefined reference to `libmsvcrt_a_iname'
fu000004.o::-1: error: undefined reference to `libmsvcrt_a_iname'
fu000005.o::-1: error: undefined reference to `libmsvcrt_a_iname'
nmth000000.o::-1: error: undefined reference to `_nm___fmode'
nmth000003.o::-1: error: undefined reference to `_nm___fpreset'
:-1: error: collect2: ld returned 1 exit status