[Qt-creator] Build issue with error message:"Collect2: ld returned 1 exit status"
Zine eddine Bendjaballah
zineeddine.b at hotmail.com
Thu Jan 8 13:54:45 CET 2009
Hi,
there is no other lines above "Collect2: ld returned 1 exit status". this is the only error message I was given.
but I can give you the code of my main.cpp file;
#include <QApplication>
#include <QtGui>
//#include "ui_MainWindow.h"
#include "ui_ByteConverterDlg.h"
#include "ByteConverter.h"
using namespace Ui;
//using namespace std;
//ByteConverterDialog::ByteConverterDialog(QWidget* parent): QDialog(parent)
// ui.setupUi(this);
// connect(ui.decEdit, SIGNAL(textChanged(const QString&)),
// this, SLOT(decChanged(const QString&)));
// connect(ui.hexEdit, SIGNAL(textChanged(const QString&)),
// this, SLOT(hexChanged(const QString&)));
// connect(ui.binEdit, SIGNAL(textChanged(const QString&)),
// this, SLOT(binChanged(const QString&)));
//}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QDialog dlg;
Ui::Dialog ui;
ui.setupUi(&dlg);
dlg.setAttribute(Qt::WA_QuitOnClose);
dlg.show();
return app.exec();
}
it's a simple program to display a dialogue window with LineEdit and a push button objects.
Best regards.
Zinou.
> Date: Thu, 8 Jan 2009 12:42:09 +0100
> From: curruscataphractus at gmail.com
> To: qt-creator at trolltech.com
> Subject: Re: [Qt-creator] Build issue with error message:"Collect2: ld returned 1 exit status"
>
> Hi,
>
> It seems linker cannot find some debug libraries. Please
> paste some lines above "Collect2: ld returned 1 exit status"
> to try to solve your problem.
>
> Best regards,
> Jorge
>
> Zine eddine Bendjaballah wrote:
> > Hi;
> >
> > I'm new in Qt and Qt creator. I've created a program and when I build
> > it, it return this error message "Collect2: ld returned 1 exit status"
> > But when I change the set build configuration menu option to "release",
> > the build success and I can run the program.
> >
> > thank you for your help.
> >
> >
> > ------------------------------------------------------------------------
> > Tous vos amis discutent sur Messenger, et vous ? Téléchargez Messenger,
> > c'est gratuit ! <http://get.live.com/messenger/overview>
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
_________________________________________________________________
Glissez - déplacez : c'est si simple de partager vos photos sur Windows Live™ Photos !
http://www.microsoft.com/windows/windowslive/photos.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090108/e9bb759f/attachment.html
More information about the Qt-creator-old
mailing list