I am using QtCreator. I am getting this bizaare linker error when i try to combine this app.
This is what my app is.
I have made some changes since my last post. This is my code at the moment.
I need a GUI application to display the contents of myFunction. I have a working console application.
This is my dialog.cpp
Code:
#include "dialog.h" #include "ui_dialog.h" #include <QLibrary> #include <QtGui> { connect(pushButton, SIGNAL(clicked()), this, SLOT(myFunction1())); setWindowTitle(tr("Desktop Uploader")); } void Dialog::myFunction1() { typedef char* (*MyPrototype)(); char *b = myFunction(); disLabel->setText(tr(b)); }
This is my dialog.h
Code:
#ifndef DIALOG_H #define DIALOG_H #include <QDialog> class QLabel; class QPushButton; { Q_OBJECT public: private: QLabel *disLabel QPushButton *pushButton; QWidget *extension; }; #endif // DIALOG_H
This is my main.cpp
Code:
#include <QtGui/QApplication> #include "dialog.h" int main(int argc, char *argv[]) { Dialog dialog; return dialog.exec(); }
I am getting the foll errors.
Quote:
main.cpp:7: error: `Dialog' was not declared in this scope
/main.cpp:7: error: expected `;' before "dialog"
main.cpp:8: error: `dialog' was not declared in this scope
/main.cpp:7: warning: unused variable 'Dialog'
/main.cpp:8: warning: unused variable 'dialog'
How can i solve this?
thanks for reading.

