#include <QCoreApplication>
#include"OGLDraw.h"
int main(int argc, char** argv)
{
QApplication app(argc, argv);
OGLDraw oglDraw;
ogldraw.resize(200,300);
oglDraw.show();
return app.exec();
}
TEMPLATE = app
QT+=opengl
HEADERS=OGLDraw.h
SOURCES = OGLDraw.cpp \
main.cpp
TARGET = ../OGLDraw
Пишет ошибки :
cd '/home/stud/Desktop/pol' && LC_MESSAGES="C" LC_CTYPE="C" gmake -k
cd src/ && gmake -f Makefile
/usr/bin/qmake-qt4 -unix -o Makefile src.pro
WARNING: Failure to find: OGLDraw.cpp
WARNING: Failure to find: OGLDraw.h
gmake[1]: *** No rule to make target `OGLDraw.cpp', needed by `OGLDraw.o'.
компиляция main.cpp (g++)
main.cpp:23:20: error: OGLDraw.h: No such file or directory
main.cpp: In function 'int main(int, char**)':
main.cpp:27: error: 'QApplication' was not declared in this scope
main.cpp:27: error: expected `;' before 'app'
main.cpp:28: error: 'OGLDraw' was not declared in this scope
main.cpp:28: error: expected `;' before 'oglDraw'
main.cpp:29: error: 'ogldraw' was not declared in this scope
main.cpp:30: error: 'oglDraw' was not declared in this scope
main.cpp:31: error: 'app' was not declared in this scope
main.cpp: At global scope:
main.cpp:25: warning: unused parameter 'argc'
main.cpp:25: warning: unused parameter 'argv'
gmake[1]: *** [main.o] Error 1
gmake[1]: Target `first' not remade because of errors.
gmake: *** [sub-src-make_default] Error 2
gmake: Target `first' not remade because of errors.
*** Завершено с кодом: 2 ***